Package org.lwjgl.ovr

Class OVRInputState.Buffer

    • Constructor Detail

      • Buffer

        public Buffer(java.nio.ByteBuffer container)
        Creates a new OVRInputState.Buffer instance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by OVRInputState.SIZEOF, and its mark will be undefined.

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

    • Method Detail

      • TimeInSeconds

        public double TimeInSeconds()
        Returns the value of the TimeInSeconds field.
      • ConnectedControllerTypes

        public int ConnectedControllerTypes()
        Returns the value of the ConnectedControllerTypes field.
      • Buttons

        public int Buttons()
        Returns the value of the Buttons field.
      • Touches

        public int Touches()
        Returns the value of the Touches field.
      • IndexTrigger

        public java.nio.FloatBuffer IndexTrigger()
        Returns a FloatBuffer view of the IndexTrigger field.
      • IndexTrigger

        public float IndexTrigger(int index)
        Returns the value at the specified index of the IndexTrigger field.
      • HandTrigger

        public java.nio.FloatBuffer HandTrigger()
        Returns a FloatBuffer view of the HandTrigger field.
      • HandTrigger

        public float HandTrigger(int index)
        Returns the value at the specified index of the HandTrigger field.
      • Thumbstick

        public OVRVector2f Thumbstick(int index)
        Returns a OVRVector2f view of the struct at the specified index of the Thumbstick field.
      • ControllerType

        public int ControllerType()
        Returns the value of the ControllerType field.
      • TimeInSeconds

        public OVRInputState.Buffer TimeInSeconds(double value)
        Sets the specified value to the TimeInSeconds field.
      • ConnectedControllerTypes

        public OVRInputState.Buffer ConnectedControllerTypes(int value)
        Sets the specified value to the ConnectedControllerTypes field.
      • Buttons

        public OVRInputState.Buffer Buttons(int value)
        Sets the specified value to the Buttons field.
      • Touches

        public OVRInputState.Buffer Touches(int value)
        Sets the specified value to the Touches field.
      • IndexTrigger

        public OVRInputState.Buffer IndexTrigger(java.nio.FloatBuffer value)
        Copies the specified FloatBuffer to the IndexTrigger field.
      • IndexTrigger

        public OVRInputState.Buffer IndexTrigger(int index,
                                                 float value)
        Sets the specified value at the specified index of the IndexTrigger field.
      • HandTrigger

        public OVRInputState.Buffer HandTrigger(java.nio.FloatBuffer value)
        Copies the specified FloatBuffer to the HandTrigger field.
      • HandTrigger

        public OVRInputState.Buffer HandTrigger(int index,
                                                float value)
        Sets the specified value at the specified index of the HandTrigger field.
      • ControllerType

        public OVRInputState.Buffer ControllerType(int value)
        Sets the specified value to the ControllerType field.