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