Package gaiasky.gui
Class OpenVRListener
java.lang.Object
gaiasky.gui.OpenVRListener
- All Implemented Interfaces:
VRDeviceListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaxisMoved(VRContext.VRDevice device, int axis, float valueX, float valueY) An axis fromVRContext.VRControllerAxeswas moved on theVRContext.VRDevicevoidbuttonPressed(VRContext.VRDevice device, int button) A button fromVRContext.VRControllerButtonswas pressed on theVRContext.VRDevicevoidbuttonReleased(VRContext.VRDevice device, int button) A button fromVRContext.VRControllerButtonswas released on theVRContext.VRDevicevoidbuttonTouched(VRContext.VRDevice device, int button) A button fromVRContext.VRControllerButtonswas touched on theVRContext.VRDevicevoidbuttonUntouched(VRContext.VRDevice device, int button) A button fromVRContext.VRControllerButtonswas untouched on theVRContext.VRDevicevoidconnected(VRContext.VRDevice device) A newVRContext.VRDevicehas connectedvoiddisconnected(VRContext.VRDevice device) AVRContext.VRDevicehas disconnectedvoidevent(int code) Unhandled event on theVRContext.VRDevicevoidupdate()
-
Constructor Details
-
OpenVRListener
-
-
Method Details
-
connected
Description copied from interface:VRDeviceListenerA newVRContext.VRDevicehas connected- Specified by:
connectedin interfaceVRDeviceListener
-
disconnected
Description copied from interface:VRDeviceListenerAVRContext.VRDevicehas disconnected- Specified by:
disconnectedin interfaceVRDeviceListener
-
update
public void update() -
buttonPressed
Description copied from interface:VRDeviceListenerA button fromVRContext.VRControllerButtonswas pressed on theVRContext.VRDevice- Specified by:
buttonPressedin interfaceVRDeviceListener
-
buttonReleased
Description copied from interface:VRDeviceListenerA button fromVRContext.VRControllerButtonswas released on theVRContext.VRDevice- Specified by:
buttonReleasedin interfaceVRDeviceListener
-
event
public void event(int code) Description copied from interface:VRDeviceListenerUnhandled event on theVRContext.VRDevice- Specified by:
eventin interfaceVRDeviceListener- Parameters:
code- Event code
-
buttonTouched
Description copied from interface:VRDeviceListenerA button fromVRContext.VRControllerButtonswas touched on theVRContext.VRDevice- Specified by:
buttonTouchedin interfaceVRDeviceListener
-
buttonUntouched
Description copied from interface:VRDeviceListenerA button fromVRContext.VRControllerButtonswas untouched on theVRContext.VRDevice- Specified by:
buttonUntouchedin interfaceVRDeviceListener
-
axisMoved
Description copied from interface:VRDeviceListenerAn axis fromVRContext.VRControllerAxeswas moved on theVRContext.VRDevice- Specified by:
axisMovedin interfaceVRDeviceListener
-