Package gaiasky.gui
Class OpenVRListener
java.lang.Object
gaiasky.gui.OpenVRListener
- All Implemented Interfaces:
VRDeviceListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaxisMoved(VRContext.VRDevice device, int axis, float valueX, float valueY) An axis was moved on theVRContext.VRDevicebooleanbuttonPressed(VRContext.VRDevice device, int button) A button was pressed on theVRContext.VRDevicebooleanbuttonReleased(VRContext.VRDevice device, int button) A button was released on theVRContext.VRDevicebooleanbuttonTouched(VRContext.VRDevice device, int button) A button was touched on theVRContext.VRDevicebooleanbuttonUntouched(VRContext.VRDevice device, int button) A button was 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
public OpenVRListener() -
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 was pressed on theVRContext.VRDevice- Specified by:
buttonPressedin interfaceVRDeviceListener- Returns:
- True if the event was handled.
-
buttonReleased
Description copied from interface:VRDeviceListenerA button was released on theVRContext.VRDevice- Specified by:
buttonReleasedin interfaceVRDeviceListener- Returns:
- True if the event was handled.
-
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 was touched on theVRContext.VRDevice- Specified by:
buttonTouchedin interfaceVRDeviceListener- Returns:
- True if the event was handled.
-
buttonUntouched
Description copied from interface:VRDeviceListenerA button was untouched on theVRContext.VRDevice- Specified by:
buttonUntouchedin interfaceVRDeviceListener- Returns:
- True if the event was handled.
-
axisMoved
Description copied from interface:VRDeviceListenerAn axis was moved on theVRContext.VRDevice- Specified by:
axisMovedin interfaceVRDeviceListener- Returns:
- True if the event was handled.
-