Package gaiasky.interafce
Class OpenVRListener
java.lang.Object
gaiasky.interafce.OpenVRListener
- All Implemented Interfaces:
VRDeviceListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
axisMoved
(VRContext.VRDevice device, int axis, float valueX, float valueY) An axis fromVRContext.VRControllerAxes
was moved on theVRContext.VRDevice
void
buttonPressed
(VRContext.VRDevice device, int button) A button fromVRContext.VRControllerButtons
was pressed on theVRContext.VRDevice
void
buttonReleased
(VRContext.VRDevice device, int button) A button fromVRContext.VRControllerButtons
was released on theVRContext.VRDevice
void
buttonTouched
(VRContext.VRDevice device, int button) A button fromVRContext.VRControllerButtons
was touched on theVRContext.VRDevice
void
buttonUntouched
(VRContext.VRDevice device, int button) A button fromVRContext.VRControllerButtons
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
-
-
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
-