Package com.jme3.input.vr.lwjgl_openvr
Class LWJGLOpenVRMouseManager
java.lang.Object
com.jme3.input.vr.AbstractVRMouseManager
com.jme3.input.vr.lwjgl_openvr.LWJGLOpenVRMouseManager
- All Implemented Interfaces:
VRMouseManager
A class dedicated to the handling of the mouse within VR environment.
-
Field Summary
Fields inherited from class com.jme3.input.vr.AbstractVRMouseManager
cursorPos
-
Constructor Summary
ConstructorDescriptionLWJGLOpenVRMouseManager
(VREnvironment environment) Create a new VR mouse manager within the givenVR environment
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
updateAnalogAsMouse
(int inputIndex, AnalogListener mouseListener, String mouseXName, String mouseYName, float tpf) Update analog controller as it was a mouse controller.Methods inherited from class com.jme3.input.vr.AbstractVRMouseManager
centerMouse, getCursorPosition, getMouseMoveScale, getSpeedAcceleration, getSpeedSensitivity, getVREnvironment, initialize, isThumbstickMode, setImage, setMouseMoveScale, setSpeed, setThumbstickMode, setVRMouseEnabled, update
-
Constructor Details
-
LWJGLOpenVRMouseManager
Create a new VR mouse manager within the givenVR environment
.- Parameters:
environment
- the VR environment of the mouse manager.
-
-
Method Details
-
updateAnalogAsMouse
public void updateAnalogAsMouse(int inputIndex, AnalogListener mouseListener, String mouseXName, String mouseYName, float tpf) Description copied from interface:VRMouseManager
Update analog controller as it was a mouse controller.- Parameters:
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.
-