Package gaiasky.vr.openxr.input
Class XrControllerDevice
java.lang.Object
gaiasky.vr.openxr.input.XrControllerDevice
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Reflects the source device of this action. -
Field Summary
Modifier and TypeFieldDescriptionboolean
com.badlogic.gdx.math.Matrix4
com.badlogic.gdx.math.Quaternion
com.badlogic.gdx.math.Vector3
-
Constructor Summary
-
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
-
deviceType
-
active
public boolean active -
position
public com.badlogic.gdx.math.Vector3 position -
orientation
public com.badlogic.gdx.math.Quaternion orientation -
modelInstance
-
aimTransform
public com.badlogic.gdx.math.Matrix4 aimTransform -
showUi
-
accept
-
cameraMode
-
select
-
move
-
gripPose
-
aimPose
-
haptics
-
-
Constructor Details
-
XrControllerDevice
-
-
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
-