Package org.lwjgl.ovr
Class OVRInputState.Buffer
- java.lang.Object
-
- org.lwjgl.system.StructBuffer<OVRInputState,OVRInputState.Buffer>
-
- org.lwjgl.ovr.OVRInputState.Buffer
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
- Enclosing class:
- OVRInputState
public static final class OVRInputState.Buffer extends StructBuffer<OVRInputState,OVRInputState.Buffer>
An array ofOVRInputState
structs.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description Buffer(java.nio.ByteBuffer container)
Creates a newOVRInputState.Buffer
instance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int
Buttons()
Returns the value of theButtons
field.OVRInputState.Buffer
Buttons(int value)
Sets the specified value to theButtons
field.int
ConnectedControllerTypes()
Returns the value of theConnectedControllerTypes
field.OVRInputState.Buffer
ConnectedControllerTypes(int value)
Sets the specified value to theConnectedControllerTypes
field.int
ControllerType()
Returns the value of theControllerType
field.OVRInputState.Buffer
ControllerType(int value)
Sets the specified value to theControllerType
field.java.nio.FloatBuffer
HandTrigger()
Returns aFloatBuffer
view of theHandTrigger
field.OVRInputState.Buffer
HandTrigger(java.nio.FloatBuffer value)
Copies the specifiedFloatBuffer
to theHandTrigger
field.float
HandTrigger(int index)
Returns the value at the specified index of theHandTrigger
field.OVRInputState.Buffer
HandTrigger(int index, float value)
Sets the specified value at the specified index of theHandTrigger
field.java.nio.FloatBuffer
IndexTrigger()
Returns aFloatBuffer
view of theIndexTrigger
field.OVRInputState.Buffer
IndexTrigger(java.nio.FloatBuffer value)
Copies the specifiedFloatBuffer
to theIndexTrigger
field.float
IndexTrigger(int index)
Returns the value at the specified index of theIndexTrigger
field.OVRInputState.Buffer
IndexTrigger(int index, float value)
Sets the specified value at the specified index of theIndexTrigger
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.OVRInputState.Buffer
Thumbstick(int index, OVRVector2f value)
Copies the specifiedOVRVector2f
at the specified index of theThumbstick
field.OVRInputState.Buffer
Thumbstick(OVRVector2f.Buffer value)
Copies the specifiedOVRVector2f.Buffer
to theThumbstick
field.double
TimeInSeconds()
Returns the value of theTimeInSeconds
field.OVRInputState.Buffer
TimeInSeconds(double value)
Sets the specified value to theTimeInSeconds
field.int
Touches()
Returns the value of theTouches
field.OVRInputState.Buffer
Touches(int value)
Sets the specified value to theTouches
field.-
Methods inherited from class org.lwjgl.system.StructBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, get, get, get, get, hasRemaining, limit, limit, mark, position, position, put, put, put, remaining, reset, rewind, slice, slice, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
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.
-
-
Method Detail
-
TimeInSeconds
public double TimeInSeconds()
Returns the value of theTimeInSeconds
field.
-
ConnectedControllerTypes
public int ConnectedControllerTypes()
Returns the value of theConnectedControllerTypes
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.
-
TimeInSeconds
public OVRInputState.Buffer TimeInSeconds(double value)
Sets the specified value to theTimeInSeconds
field.
-
ConnectedControllerTypes
public OVRInputState.Buffer ConnectedControllerTypes(int value)
Sets the specified value to theConnectedControllerTypes
field.
-
Buttons
public OVRInputState.Buffer Buttons(int value)
Sets the specified value to theButtons
field.
-
Touches
public OVRInputState.Buffer Touches(int value)
Sets the specified value to theTouches
field.
-
IndexTrigger
public OVRInputState.Buffer IndexTrigger(java.nio.FloatBuffer value)
Copies the specifiedFloatBuffer
to theIndexTrigger
field.
-
IndexTrigger
public OVRInputState.Buffer IndexTrigger(int index, float value)
Sets the specified value at the specified index of theIndexTrigger
field.
-
HandTrigger
public OVRInputState.Buffer HandTrigger(java.nio.FloatBuffer value)
Copies the specifiedFloatBuffer
to theHandTrigger
field.
-
HandTrigger
public OVRInputState.Buffer HandTrigger(int index, float value)
Sets the specified value at the specified index of theHandTrigger
field.
-
Thumbstick
public OVRInputState.Buffer Thumbstick(OVRVector2f.Buffer value)
Copies the specifiedOVRVector2f.Buffer
to theThumbstick
field.
-
Thumbstick
public OVRInputState.Buffer Thumbstick(int index, OVRVector2f value)
Copies the specifiedOVRVector2f
at the specified index of theThumbstick
field.
-
ControllerType
public OVRInputState.Buffer ControllerType(int value)
Sets the specified value to theControllerType
field.
-
-