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 ofOVRInputState
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
Buttons()
Returns the value of theButtons
field.int
ControllerType()
Returns the value of theControllerType
field.java.nio.FloatBuffer
HandTrigger()
Returns aFloatBuffer
view of theHandTrigger
field.float
HandTrigger(int index)
Returns the value at the specified index of theHandTrigger
field.java.nio.FloatBuffer
HandTriggerNoDeadzone()
Returns aFloatBuffer
view of theHandTriggerNoDeadzone
field.float
HandTriggerNoDeadzone(int index)
Returns the value at the specified index of theHandTriggerNoDeadzone
field.java.nio.FloatBuffer
HandTriggerRaw()
Returns aFloatBuffer
view of theHandTriggerRaw
field.float
HandTriggerRaw(int index)
Returns the value at the specified index of theHandTriggerRaw
field.java.nio.FloatBuffer
IndexTrigger()
Returns aFloatBuffer
view of theIndexTrigger
field.float
IndexTrigger(int index)
Returns the value at the specified index of theIndexTrigger
field.java.nio.FloatBuffer
IndexTriggerNoDeadzone()
Returns aFloatBuffer
view of theIndexTriggerNoDeadzone
field.float
IndexTriggerNoDeadzone(int index)
Returns the value at the specified index of theIndexTriggerNoDeadzone
field.java.nio.FloatBuffer
IndexTriggerRaw()
Returns aFloatBuffer
view of theIndexTriggerRaw
field.float
IndexTriggerRaw(int index)
Returns the value at the specified index of theIndexTriggerRaw
field.OVRVector2f.Buffer
Thumbstick()
Returns aOVRVector2f
.Buffer view of theThumbstick
field.OVRVector2f
Thumbstick(int index)
Returns aOVRVector2f
view of the struct at the specified index of theThumbstick
field.OVRVector2f.Buffer
ThumbstickNoDeadzone()
Returns aOVRVector2f
.Buffer view of theThumbstickNoDeadzone
field.OVRVector2f
ThumbstickNoDeadzone(int index)
Returns aOVRVector2f
view of the struct at the specified index of theThumbstickNoDeadzone
field.OVRVector2f.Buffer
ThumbstickRaw()
Returns aOVRVector2f
.Buffer view of theThumbstickRaw
field.OVRVector2f
ThumbstickRaw(int index)
Returns aOVRVector2f
view of the struct at the specified index of theThumbstickRaw
field.double
TimeInSeconds()
Returns the value of theTimeInSeconds
field.int
Touches()
Returns the value of theTouches
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newOVRInputState.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 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 theTimeInSeconds
field.
-
Buttons
public int Buttons()
Returns the value of theButtons
field.
-
Touches
public int Touches()
Returns the value of theTouches
field.
-
IndexTrigger
public java.nio.FloatBuffer IndexTrigger()
Returns aFloatBuffer
view of theIndexTrigger
field.
-
IndexTrigger
public float IndexTrigger(int index)
Returns the value at the specified index of theIndexTrigger
field.
-
HandTrigger
public java.nio.FloatBuffer HandTrigger()
Returns aFloatBuffer
view of theHandTrigger
field.
-
HandTrigger
public float HandTrigger(int index)
Returns the value at the specified index of theHandTrigger
field.
-
Thumbstick
public OVRVector2f.Buffer Thumbstick()
Returns aOVRVector2f
.Buffer view of theThumbstick
field.
-
Thumbstick
public OVRVector2f Thumbstick(int index)
Returns aOVRVector2f
view of the struct at the specified index of theThumbstick
field.
-
ControllerType
public int ControllerType()
Returns the value of theControllerType
field.
-
IndexTriggerNoDeadzone
public java.nio.FloatBuffer IndexTriggerNoDeadzone()
Returns aFloatBuffer
view of theIndexTriggerNoDeadzone
field.
-
IndexTriggerNoDeadzone
public float IndexTriggerNoDeadzone(int index)
Returns the value at the specified index of theIndexTriggerNoDeadzone
field.
-
HandTriggerNoDeadzone
public java.nio.FloatBuffer HandTriggerNoDeadzone()
Returns aFloatBuffer
view of theHandTriggerNoDeadzone
field.
-
HandTriggerNoDeadzone
public float HandTriggerNoDeadzone(int index)
Returns the value at the specified index of theHandTriggerNoDeadzone
field.
-
ThumbstickNoDeadzone
public OVRVector2f.Buffer ThumbstickNoDeadzone()
Returns aOVRVector2f
.Buffer view of theThumbstickNoDeadzone
field.
-
ThumbstickNoDeadzone
public OVRVector2f ThumbstickNoDeadzone(int index)
Returns aOVRVector2f
view of the struct at the specified index of theThumbstickNoDeadzone
field.
-
IndexTriggerRaw
public java.nio.FloatBuffer IndexTriggerRaw()
Returns aFloatBuffer
view of theIndexTriggerRaw
field.
-
IndexTriggerRaw
public float IndexTriggerRaw(int index)
Returns the value at the specified index of theIndexTriggerRaw
field.
-
HandTriggerRaw
public java.nio.FloatBuffer HandTriggerRaw()
Returns aFloatBuffer
view of theHandTriggerRaw
field.
-
HandTriggerRaw
public float HandTriggerRaw(int index)
Returns the value at the specified index of theHandTriggerRaw
field.
-
ThumbstickRaw
public OVRVector2f.Buffer ThumbstickRaw()
Returns aOVRVector2f
.Buffer view of theThumbstickRaw
field.
-
ThumbstickRaw
public OVRVector2f ThumbstickRaw(int index)
Returns aOVRVector2f
view of the struct at the specified index of theThumbstickRaw
field.
-
-