Package gaiasky.interafce
Class OpenVRListener
java.lang.Object
gaiasky.interafce.OpenVRListener
- All Implemented Interfaces:
VRDeviceListener
public class OpenVRListener extends java.lang.Object implements VRDeviceListener
-
Constructor Summary
Constructors Constructor Description OpenVRListener(NaturalCamera cam)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
OpenVRListener
-
-
Method Details
-
connected
Description copied from interface:VRDeviceListener
A newVRContext.VRDevice
has connected- Specified by:
connected
in interfaceVRDeviceListener
-
disconnected
Description copied from interface:VRDeviceListener
AVRContext.VRDevice
has disconnected- Specified by:
disconnected
in interfaceVRDeviceListener
-
update
public void update() -
buttonPressed
Description copied from interface:VRDeviceListener
A button fromVRContext.VRControllerButtons
was pressed on theVRContext.VRDevice
- Specified by:
buttonPressed
in interfaceVRDeviceListener
-
buttonReleased
Description copied from interface:VRDeviceListener
A button fromVRContext.VRControllerButtons
was released on theVRContext.VRDevice
- Specified by:
buttonReleased
in interfaceVRDeviceListener
-
event
public void event(int code)Description copied from interface:VRDeviceListener
Unhandled event on theVRContext.VRDevice
- Specified by:
event
in interfaceVRDeviceListener
- Parameters:
code
- Event code
-
buttonTouched
Description copied from interface:VRDeviceListener
A button fromVRContext.VRControllerButtons
was touched on theVRContext.VRDevice
- Specified by:
buttonTouched
in interfaceVRDeviceListener
-
buttonUntouched
Description copied from interface:VRDeviceListener
A button fromVRContext.VRControllerButtons
was untouched on theVRContext.VRDevice
- Specified by:
buttonUntouched
in interfaceVRDeviceListener
-
axisMoved
Description copied from interface:VRDeviceListener
An axis fromVRContext.VRControllerAxes
was moved on theVRContext.VRDevice
- Specified by:
axisMoved
in interfaceVRDeviceListener
-