Class VRControllerState

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VRControllerState>
org.lwjgl.openvr.VRControllerState
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VRControllerState extends org.lwjgl.system.Struct<VRControllerState> implements org.lwjgl.system.NativeResource
Holds all the state of a controller at one moment in time.

Layout


 struct VRControllerState_t {
     uint32_t unPacketNum();
     uint64_t ulButtonPressed();
     uint64_t ulButtonTouched;
     VRControllerAxis_t rAxis()[5];
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • UNPACKETNUM

      public static final int UNPACKETNUM
      The struct member offsets.
    • ULBUTTONPRESSED

      public static final int ULBUTTONPRESSED
      The struct member offsets.
    • ULBUTTONTOUCHED

      public static final int ULBUTTONTOUCHED
      The struct member offsets.
    • RAXIS

      public static final int RAXIS
      The struct member offsets.
  • Constructor Details

    • VRControllerState

      public VRControllerState(ByteBuffer container)
      Creates a VRControllerState instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details