Package org.lwjgl.ovr

Class OVRInputState

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class OVRInputState extends Struct<OVRInputState> implements NativeResource
Describes the complete controller input state, including Oculus Touch, and XBox gamepad. If multiple inputs are connected and used at the same time, their inputs are combined.

Layout


 struct ovrInputState {
     double TimeInSeconds();
     unsigned int Buttons();
     unsigned int Touches();
     float IndexTrigger()[ovrHand_Count];
     float HandTrigger()[ovrHand_Count];
     ovrVector2f Thumbstick()[ovrHand_Count];
     ovrControllerType ControllerType();
     float IndexTriggerNoDeadzone()[ovrHand_Count];
     float HandTriggerNoDeadzone()[ovrHand_Count];
     ovrVector2f ThumbstickNoDeadzone()[ovrHand_Count];
     float IndexTriggerRaw()[ovrHand_Count];
     float HandTriggerRaw()[ovrHand_Count];
     ovrVector2f ThumbstickRaw()[ovrHand_Count];
 }
  • Field Details

    • SIZEOF

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

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

      public static final int TIMEINSECONDS
      The struct member offsets.
    • BUTTONS

      public static final int BUTTONS
      The struct member offsets.
    • TOUCHES

      public static final int TOUCHES
      The struct member offsets.
    • INDEXTRIGGER

      public static final int INDEXTRIGGER
      The struct member offsets.
    • HANDTRIGGER

      public static final int HANDTRIGGER
      The struct member offsets.
    • THUMBSTICK

      public static final int THUMBSTICK
      The struct member offsets.
    • CONTROLLERTYPE

      public static final int CONTROLLERTYPE
      The struct member offsets.
    • INDEXTRIGGERNODEADZONE

      public static final int INDEXTRIGGERNODEADZONE
      The struct member offsets.
    • HANDTRIGGERNODEADZONE

      public static final int HANDTRIGGERNODEADZONE
      The struct member offsets.
    • THUMBSTICKNODEADZONE

      public static final int THUMBSTICKNODEADZONE
      The struct member offsets.
    • INDEXTRIGGERRAW

      public static final int INDEXTRIGGERRAW
      The struct member offsets.
    • HANDTRIGGERRAW

      public static final int HANDTRIGGERRAW
      The struct member offsets.
    • THUMBSTICKRAW

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

    • OVRInputState

      public OVRInputState(ByteBuffer container)
      Creates a OVRInputState 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