Package gaiasky.gui
Class OpenVRListener
java.lang.Object
gaiasky.gui.OpenVRListener
- All Implemented Interfaces:
VRDeviceListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
axisMoved
(VRContext.VRDevice device, int axis, float valueX, float valueY) An axis was moved on theVRContext.VRDevice
boolean
buttonPressed
(VRContext.VRDevice device, int button) A button was pressed on theVRContext.VRDevice
boolean
buttonReleased
(VRContext.VRDevice device, int button) A button was released on theVRContext.VRDevice
boolean
buttonTouched
(VRContext.VRDevice device, int button) A button was touched on theVRContext.VRDevice
boolean
buttonUntouched
(VRContext.VRDevice device, int button) A button was untouched on theVRContext.VRDevice
void
connected
(VRContext.VRDevice device) A newVRContext.VRDevice
has connectedvoid
disconnected
(VRContext.VRDevice device) AVRContext.VRDevice
has disconnectedvoid
event
(int code) Unhandled event on theVRContext.VRDevice
void
update()
-
Constructor Details
-
OpenVRListener
public OpenVRListener() -
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 was pressed on theVRContext.VRDevice
- Specified by:
buttonPressed
in interfaceVRDeviceListener
- Returns:
- True if the event was handled.
-
buttonReleased
Description copied from interface:VRDeviceListener
A button was released on theVRContext.VRDevice
- Specified by:
buttonReleased
in interfaceVRDeviceListener
- Returns:
- True if the event was handled.
-
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 was touched on theVRContext.VRDevice
- Specified by:
buttonTouched
in interfaceVRDeviceListener
- Returns:
- True if the event was handled.
-
buttonUntouched
Description copied from interface:VRDeviceListener
A button was untouched on theVRContext.VRDevice
- Specified by:
buttonUntouched
in interfaceVRDeviceListener
- Returns:
- True if the event was handled.
-
axisMoved
Description copied from interface:VRDeviceListener
An axis was moved on theVRContext.VRDevice
- Specified by:
axisMoved
in interfaceVRDeviceListener
- Returns:
- True if the event was handled.
-