public class OpenVRMouseManager extends AbstractVRMouseManager
cursorPos
Constructor and Description |
---|
OpenVRMouseManager(VREnvironment environment)
Create a new VR mouse manager within the given
VR environment . |
Modifier and Type | Method and Description |
---|---|
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.
|
centerMouse, getCursorPosition, getMouseMoveScale, getSpeedAcceleration, getSpeedSensitivity, getVREnvironment, initialize, isThumbstickMode, setImage, setMouseMoveScale, setSpeed, setThumbstickMode, setVRMouseEnabled, update
public OpenVRMouseManager(VREnvironment environment)
VR environment
.environment
- the VR environment of the mouse manager.public void updateAnalogAsMouse(int inputIndex, AnalogListener mouseListener, java.lang.String mouseXName, java.lang.String mouseYName, float tpf)
VRMouseManager
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.