Package gaiasky.vr.openxr.input
Class XrControllerDevice
java.lang.Object
gaiasky.vr.openxr.input.XrControllerDevice
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Reflects the source device of this action. -
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
com.badlogic.gdx.math.Matrix4
com.badlogic.gdx.math.Quaternion
com.badlogic.gdx.math.Vector3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(XrDriver driver) boolean
isActive()
boolean
void
processListener
(XrInputListener listener) void
sendHapticPulse
(XrDriver driver, long nanoseconds, float frequency, float amplitude) Sends a haptic pulse to this device.void
setAim
(org.lwjgl.openxr.XrPosef aim) void
setGripPose
(org.lwjgl.openxr.XrPosef grip)
-
Field Details
-
Constructor Details
-
Method Details
-
initialize
-
isInitialized
public boolean isInitialized() -
isActive
public boolean isActive() -
sendHapticPulse
Sends a haptic pulse to this device.- Parameters:
driver
- The XR driver.nanoseconds
- The length of the pulse in nanoseconds.frequency
- The frequency in Hz.amplitude
- The amplitude in [0,1].
-
setGripPose
public void setGripPose(org.lwjgl.openxr.XrPosef grip) -
setAim
public void setAim(org.lwjgl.openxr.XrPosef aim) -
getModelInstance
-
processListener
-