Package gaiasky.vr.openvr
Interface VRDeviceListener
- All Known Implementing Classes:
MainVRGui,OpenVRListener
public interface VRDeviceListener
-
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.VRDevice
-
Method Details
-
connected
A newVRContext.VRDevicehas connected -
disconnected
AVRContext.VRDevicehas 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
-