Package org.lwjgl.ovr
Class OVRInputState.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<OVRInputState,OVRInputState.Buffer>
-
- org.lwjgl.ovr.OVRInputState.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<OVRInputState>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- OVRInputState
public static class OVRInputState.Buffer extends org.lwjgl.system.StructBuffer<OVRInputState,OVRInputState.Buffer> implements org.lwjgl.system.NativeResource
An array ofOVRInputStatestructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intButtons()intControllerType()java.nio.FloatBufferHandTrigger()floatHandTrigger(int index)java.nio.FloatBufferHandTriggerNoDeadzone()floatHandTriggerNoDeadzone(int index)java.nio.FloatBufferHandTriggerRaw()floatHandTriggerRaw(int index)java.nio.FloatBufferIndexTrigger()floatIndexTrigger(int index)java.nio.FloatBufferIndexTriggerNoDeadzone()floatIndexTriggerNoDeadzone(int index)java.nio.FloatBufferIndexTriggerRaw()floatIndexTriggerRaw(int index)OVRVector2f.BufferThumbstick()OVRVector2fThumbstick(int index)OVRVector2f.BufferThumbstickNoDeadzone()OVRVector2fThumbstickNoDeadzone(int index)OVRVector2f.BufferThumbstickRaw()OVRVector2fThumbstickRaw(int index)doubleTimeInSeconds()intTouches()
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newOVRInputState.Bufferinstance 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 byOVRInputState.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
TimeInSeconds
public double TimeInSeconds()
- Returns:
- the value of the
OVRInputState.TimeInSeconds()field.
-
Buttons
public int Buttons()
- Returns:
- the value of the
OVRInputState.Buttons()field.
-
Touches
public int Touches()
- Returns:
- the value of the
OVRInputState.Touches()field.
-
IndexTrigger
public java.nio.FloatBuffer IndexTrigger()
- Returns:
- a
FloatBufferview of theOVRInputState.IndexTrigger()field.
-
IndexTrigger
public float IndexTrigger(int index)
- Returns:
- the value at the specified index of the
OVRInputState.IndexTrigger()field.
-
HandTrigger
public java.nio.FloatBuffer HandTrigger()
- Returns:
- a
FloatBufferview of theOVRInputState.HandTrigger()field.
-
HandTrigger
public float HandTrigger(int index)
- Returns:
- the value at the specified index of the
OVRInputState.HandTrigger()field.
-
Thumbstick
public OVRVector2f.Buffer Thumbstick()
- Returns:
- a
OVRVector2f.Buffer view of theOVRInputState.Thumbstick()field.
-
Thumbstick
public OVRVector2f Thumbstick(int index)
- Returns:
- a
OVRVector2fview of the struct at the specified index of theOVRInputState.Thumbstick()field.
-
ControllerType
public int ControllerType()
- Returns:
- the value of the
OVRInputState.ControllerType()field.
-
IndexTriggerNoDeadzone
public java.nio.FloatBuffer IndexTriggerNoDeadzone()
- Returns:
- a
FloatBufferview of theOVRInputState.IndexTriggerNoDeadzone()field.
-
IndexTriggerNoDeadzone
public float IndexTriggerNoDeadzone(int index)
- Returns:
- the value at the specified index of the
OVRInputState.IndexTriggerNoDeadzone()field.
-
HandTriggerNoDeadzone
public java.nio.FloatBuffer HandTriggerNoDeadzone()
- Returns:
- a
FloatBufferview of theOVRInputState.HandTriggerNoDeadzone()field.
-
HandTriggerNoDeadzone
public float HandTriggerNoDeadzone(int index)
- Returns:
- the value at the specified index of the
OVRInputState.HandTriggerNoDeadzone()field.
-
ThumbstickNoDeadzone
public OVRVector2f.Buffer ThumbstickNoDeadzone()
- Returns:
- a
OVRVector2f.Buffer view of theOVRInputState.ThumbstickNoDeadzone()field.
-
ThumbstickNoDeadzone
public OVRVector2f ThumbstickNoDeadzone(int index)
- Returns:
- a
OVRVector2fview of the struct at the specified index of theOVRInputState.ThumbstickNoDeadzone()field.
-
IndexTriggerRaw
public java.nio.FloatBuffer IndexTriggerRaw()
- Returns:
- a
FloatBufferview of theOVRInputState.IndexTriggerRaw()field.
-
IndexTriggerRaw
public float IndexTriggerRaw(int index)
- Returns:
- the value at the specified index of the
OVRInputState.IndexTriggerRaw()field.
-
HandTriggerRaw
public java.nio.FloatBuffer HandTriggerRaw()
- Returns:
- a
FloatBufferview of theOVRInputState.HandTriggerRaw()field.
-
HandTriggerRaw
public float HandTriggerRaw(int index)
- Returns:
- the value at the specified index of the
OVRInputState.HandTriggerRaw()field.
-
ThumbstickRaw
public OVRVector2f.Buffer ThumbstickRaw()
- Returns:
- a
OVRVector2f.Buffer view of theOVRInputState.ThumbstickRaw()field.
-
ThumbstickRaw
public OVRVector2f ThumbstickRaw(int index)
- Returns:
- a
OVRVector2fview of the struct at the specified index of theOVRInputState.ThumbstickRaw()field.
-
-