Package com.jme3.input.vr.osvr
Class OSVRMouseManager
java.lang.Object
com.jme3.input.vr.AbstractVRMouseManager
com.jme3.input.vr.osvr.OSVRMouseManager
- All Implemented Interfaces:
VRMouseManager
A class dedicated to the mouse handling within OSVR based VR experience.
-
Field Summary
Fields inherited from class com.jme3.input.vr.AbstractVRMouseManager
cursorPos
-
Constructor Summary
ConstructorDescriptionOSVRMouseManager
(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
-
OSVRMouseManager
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.
-