Package gaiasky.interfce
Class OpenVRListener
- java.lang.Object
-
- gaiasky.interfce.OpenVRListener
-
- All Implemented Interfaces:
VRDeviceListener
public class OpenVRListener extends java.lang.Object implements VRDeviceListener
-
-
Constructor Summary
Constructors Constructor Description OpenVRListener(NaturalCamera cam)
-
Method Summary
-
-
-
Constructor Detail
-
OpenVRListener
public OpenVRListener(NaturalCamera cam)
-
-
Method Detail
-
connected
public void connected(VRContext.VRDevice device)
Description copied from interface:VRDeviceListener
A newVRContext.VRDevice
has connected- Specified by:
connected
in interfaceVRDeviceListener
-
disconnected
public void disconnected(VRContext.VRDevice device)
Description copied from interface:VRDeviceListener
AVRContext.VRDevice
has disconnected- Specified by:
disconnected
in interfaceVRDeviceListener
-
update
public void update()
-
buttonPressed
public void buttonPressed(VRContext.VRDevice device, int button)
Description copied from interface:VRDeviceListener
A button fromVRContext.VRControllerButtons
was pressed on theVRContext.VRDevice
- Specified by:
buttonPressed
in interfaceVRDeviceListener
-
buttonReleased
public void buttonReleased(VRContext.VRDevice device, int button)
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
public void buttonTouched(VRContext.VRDevice device, int button)
Description copied from interface:VRDeviceListener
A button fromVRContext.VRControllerButtons
was touched on theVRContext.VRDevice
- Specified by:
buttonTouched
in interfaceVRDeviceListener
-
buttonUntouched
public void buttonUntouched(VRContext.VRDevice device, int button)
Description copied from interface:VRDeviceListener
A button fromVRContext.VRControllerButtons
was untouched on theVRContext.VRDevice
- Specified by:
buttonUntouched
in interfaceVRDeviceListener
-
axisMoved
public void axisMoved(VRContext.VRDevice device, int axis, float valueX, float valueY)
Description copied from interface:VRDeviceListener
An axis fromVRContext.VRControllerAxes
was moved on theVRContext.VRDevice
- Specified by:
axisMoved
in interfaceVRDeviceListener
-
-