Class XrControllerDevice
java.lang.Object
gaiasky.vr.openxr.input.XrControllerDevice
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumReflects the source device of this action. -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleancom.badlogic.gdx.math.Matrix4com.badlogic.gdx.math.Quaternioncom.badlogic.gdx.math.Vector3 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(XrDriver driver) booleanisActive()booleanvoidprocessListener(XrInputListener listener) voidsendHapticPulse(XrDriver driver, long nanoseconds, float frequency, float amplitude) Sends a haptic pulse to this device.voidsetAim(org.lwjgl.openxr.XrPosef aim) voidsetGripPose(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
-