Package gaiasky.interafce
Class OpenVRListener
- java.lang.Object
-
- gaiasky.interafce.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:VRDeviceListenerA newVRContext.VRDevicehas connected- Specified by:
connectedin interfaceVRDeviceListener
-
disconnected
public void disconnected(VRContext.VRDevice device)
Description copied from interface:VRDeviceListenerAVRContext.VRDevicehas disconnected- Specified by:
disconnectedin interfaceVRDeviceListener
-
update
public void update()
-
buttonPressed
public void buttonPressed(VRContext.VRDevice device, int button)
Description copied from interface:VRDeviceListenerA button fromVRContext.VRControllerButtonswas pressed on theVRContext.VRDevice- Specified by:
buttonPressedin interfaceVRDeviceListener
-
buttonReleased
public void buttonReleased(VRContext.VRDevice device, int button)
Description copied from interface:VRDeviceListenerA button fromVRContext.VRControllerButtonswas released on theVRContext.VRDevice- Specified by:
buttonReleasedin interfaceVRDeviceListener
-
event
public void event(int code)
Description copied from interface:VRDeviceListenerUnhandled event on theVRContext.VRDevice- Specified by:
eventin interfaceVRDeviceListener- Parameters:
code- Event code
-
buttonTouched
public void buttonTouched(VRContext.VRDevice device, int button)
Description copied from interface:VRDeviceListenerA button fromVRContext.VRControllerButtonswas touched on theVRContext.VRDevice- Specified by:
buttonTouchedin interfaceVRDeviceListener
-
buttonUntouched
public void buttonUntouched(VRContext.VRDevice device, int button)
Description copied from interface:VRDeviceListenerA button fromVRContext.VRControllerButtonswas untouched on theVRContext.VRDevice- Specified by:
buttonUntouchedin interfaceVRDeviceListener
-
axisMoved
public void axisMoved(VRContext.VRDevice device, int axis, float valueX, float valueY)
Description copied from interface:VRDeviceListenerAn axis fromVRContext.VRControllerAxeswas moved on theVRContext.VRDevice- Specified by:
axisMovedin interfaceVRDeviceListener
-
-