Class XrControllerDevice

java.lang.Object
gaiasky.vr.openxr.input.XrControllerDevice

public class XrControllerDevice extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • initialize

      public void initialize(XrDriver driver)
    • isInitialized

      public boolean isInitialized()
    • isActive

      public boolean isActive()
    • sendHapticPulse

      public void sendHapticPulse(XrDriver driver, long nanoseconds, float frequency, float amplitude)
      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

      public IntModelInstance getModelInstance()
    • processListener

      public void processListener(XrInputListener listener)