Package gaiasky.vr.openvr
Interface VRDeviceListener
- All Known Implementing Classes:
MainVRGui
,OpenVRListener
public interface VRDeviceListener
-
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
-
Method Details
-
connected
A newVRContext.VRDevice
has connected -
disconnected
AVRContext.VRDevice
has disconnected -
buttonPressed
A button was pressed on theVRContext.VRDevice
- Returns:
- True if the event was handled.
-
buttonReleased
A button was released on theVRContext.VRDevice
- Returns:
- True if the event was handled.
-
buttonTouched
A button was touched on theVRContext.VRDevice
- Returns:
- True if the event was handled.
-
buttonUntouched
A button was untouched on theVRContext.VRDevice
- Returns:
- True if the event was handled.
-
axisMoved
An axis was moved on theVRContext.VRDevice
- Returns:
- True if the event was handled.
-
event
void event(int code) Unhandled event on theVRContext.VRDevice
- Parameters:
code
- Event code
-