public interface VRMouseManager
| Modifier and Type | Method and Description |
|---|---|
void |
centerMouse()
Center the mouse on the display.
|
Vector2f |
getCursorPosition()
Get the actual cursor position.
|
float |
getMouseMoveScale()
Get the move scale.
|
float |
getSpeedAcceleration()
Get the acceleration of the mouse.
|
float |
getSpeedSensitivity()
Get the sensitivity of the mouse.
|
VREnvironment |
getVREnvironment()
Get the
VR Environment to which this manager is attached. |
void |
initialize()
Initialize the VR mouse manager.
|
boolean |
isThumbstickMode()
Get if the VR device controller is used within thumb stick mode.
|
void |
setImage(java.lang.String texture)
Set the image to use as mouse cursor.
|
void |
setMouseMoveScale(float set)
Set the mouse move scale.
|
void |
setSpeed(float sensitivity,
float acceleration)
Set the speed of the mouse.
|
void |
setThumbstickMode(boolean set)
Set if the VR device controller is used within thumb stick mode.
|
void |
setVRMouseEnabled(boolean enabled)
Set if the mouse cursor should be used in the VR view.
|
void |
update(float tpf)
Update the mouse manager.
|
void |
updateAnalogAsMouse(int inputIndex,
AnalogListener mouseListener,
java.lang.String mouseXName,
java.lang.String mouseYName,
float tpf)
Update analog controller as it was a mouse controller.
|
void initialize()
VREnvironment getVREnvironment()
VR Environment to which this manager is attached.VR Environment to which this manager is attached.void setVRMouseEnabled(boolean enabled)
enabled - true if the mouse cursor should be displayed in VR and false otherwise.void setThumbstickMode(boolean set)
set - true if the VR device controller is used within thumb stick mode and false otherwise.boolean isThumbstickMode()
true if the VR device controller is used within thumb stick mode and false otherwise.void setSpeed(float sensitivity,
float acceleration)
sensitivity - the sensitivity of the mouse.acceleration - the acceleration of the mouse.getSpeedAcceleration(),
getSpeedSensitivity()float getSpeedSensitivity()
setSpeed(float, float)float getSpeedAcceleration()
setSpeed(float, float)float getMouseMoveScale()
setMouseMoveScale(float)void setMouseMoveScale(float set)
set - the mouse move scale.getMouseMoveScale()void setImage(java.lang.String texture)
texture - the image to use as mouse cursor.void updateAnalogAsMouse(int inputIndex,
AnalogListener mouseListener,
java.lang.String mouseXName,
java.lang.String mouseYName,
float tpf)
inputIndex - the index of the controller attached to the VR system.mouseListener - the JMonkey mouse listener to trigger.mouseXName - the mouseX identifier.mouseYName - the mouseY identifiertpf - the time per frame.Vector2f getCursorPosition()
void centerMouse()
void update(float tpf)
update method of the attached VR view manager.tpf - the time per frame.