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