Package gaiasky.vr.openvr
Interface VRDeviceListener
- All Known Implementing Classes:
OpenVRListener
public interface VRDeviceListener
-
Method Summary
Modifier and Type Method Description voidaxisMoved(VRContext.VRDevice device, int axis, float valueX, float valueY)An axis fromVRContext.VRControllerAxeswas moved on theVRContext.VRDevicevoidbuttonPressed(VRContext.VRDevice device, int button)A button fromVRContext.VRControllerButtonswas pressed on theVRContext.VRDevicevoidbuttonReleased(VRContext.VRDevice device, int button)A button fromVRContext.VRControllerButtonswas released on theVRContext.VRDevicevoidbuttonTouched(VRContext.VRDevice device, int button)A button fromVRContext.VRControllerButtonswas touched on theVRContext.VRDevicevoidbuttonUntouched(VRContext.VRDevice device, int button)A button fromVRContext.VRControllerButtonswas 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 fromVRContext.VRControllerButtonswas pressed on theVRContext.VRDevice -
buttonReleased
A button fromVRContext.VRControllerButtonswas released on theVRContext.VRDevice -
buttonTouched
A button fromVRContext.VRControllerButtonswas touched on theVRContext.VRDevice -
buttonUntouched
A button fromVRContext.VRControllerButtonswas untouched on theVRContext.VRDevice -
axisMoved
An axis fromVRContext.VRControllerAxeswas moved on theVRContext.VRDevice -
event
void event(int code)Unhandled event on theVRContext.VRDevice- Parameters:
code- Event code
-