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 ofOVRInputStatestructs.
-
-
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.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intButtons()Returns the value of theButtonsfield.OVRInputState.BufferButtons(int value)Sets the specified value to theButtonsfield.intConnectedControllerTypes()Returns the value of theConnectedControllerTypesfield.OVRInputState.BufferConnectedControllerTypes(int value)Sets the specified value to theConnectedControllerTypesfield.intControllerType()Returns the value of theControllerTypefield.OVRInputState.BufferControllerType(int value)Sets the specified value to theControllerTypefield.java.nio.FloatBufferHandTrigger()Returns aFloatBufferview of theHandTriggerfield.OVRInputState.BufferHandTrigger(java.nio.FloatBuffer value)Copies the specifiedFloatBufferto theHandTriggerfield.floatHandTrigger(int index)Returns the value at the specified index of theHandTriggerfield.OVRInputState.BufferHandTrigger(int index, float value)Sets the specified value at the specified index of theHandTriggerfield.java.nio.FloatBufferIndexTrigger()Returns aFloatBufferview of theIndexTriggerfield.OVRInputState.BufferIndexTrigger(java.nio.FloatBuffer value)Copies the specifiedFloatBufferto theIndexTriggerfield.floatIndexTrigger(int index)Returns the value at the specified index of theIndexTriggerfield.OVRInputState.BufferIndexTrigger(int index, float value)Sets the specified value at the specified index of theIndexTriggerfield.OVRVector2f.BufferThumbstick()Returns aOVRVector2f.Buffer view of theThumbstickfield.OVRVector2fThumbstick(int index)Returns aOVRVector2fview of the struct at the specified index of theThumbstickfield.OVRInputState.BufferThumbstick(int index, OVRVector2f value)Copies the specifiedOVRVector2fat the specified index of theThumbstickfield.OVRInputState.BufferThumbstick(OVRVector2f.Buffer value)Copies the specifiedOVRVector2f.Bufferto theThumbstickfield.doubleTimeInSeconds()Returns the value of theTimeInSecondsfield.OVRInputState.BufferTimeInSeconds(double value)Sets the specified value to theTimeInSecondsfield.intTouches()Returns the value of theTouchesfield.OVRInputState.BufferTouches(int value)Sets the specified value to theTouchesfield.-
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.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.
-
-
Method Detail
-
TimeInSeconds
public double TimeInSeconds()
Returns the value of theTimeInSecondsfield.
-
ConnectedControllerTypes
public int ConnectedControllerTypes()
Returns the value of theConnectedControllerTypesfield.
-
Buttons
public int Buttons()
Returns the value of theButtonsfield.
-
Touches
public int Touches()
Returns the value of theTouchesfield.
-
IndexTrigger
public java.nio.FloatBuffer IndexTrigger()
Returns aFloatBufferview of theIndexTriggerfield.
-
IndexTrigger
public float IndexTrigger(int index)
Returns the value at the specified index of theIndexTriggerfield.
-
HandTrigger
public java.nio.FloatBuffer HandTrigger()
Returns aFloatBufferview of theHandTriggerfield.
-
HandTrigger
public float HandTrigger(int index)
Returns the value at the specified index of theHandTriggerfield.
-
Thumbstick
public OVRVector2f.Buffer Thumbstick()
Returns aOVRVector2f.Buffer view of theThumbstickfield.
-
Thumbstick
public OVRVector2f Thumbstick(int index)
Returns aOVRVector2fview of the struct at the specified index of theThumbstickfield.
-
ControllerType
public int ControllerType()
Returns the value of theControllerTypefield.
-
TimeInSeconds
public OVRInputState.Buffer TimeInSeconds(double value)
Sets the specified value to theTimeInSecondsfield.
-
ConnectedControllerTypes
public OVRInputState.Buffer ConnectedControllerTypes(int value)
Sets the specified value to theConnectedControllerTypesfield.
-
Buttons
public OVRInputState.Buffer Buttons(int value)
Sets the specified value to theButtonsfield.
-
Touches
public OVRInputState.Buffer Touches(int value)
Sets the specified value to theTouchesfield.
-
IndexTrigger
public OVRInputState.Buffer IndexTrigger(java.nio.FloatBuffer value)
Copies the specifiedFloatBufferto theIndexTriggerfield.
-
IndexTrigger
public OVRInputState.Buffer IndexTrigger(int index, float value)
Sets the specified value at the specified index of theIndexTriggerfield.
-
HandTrigger
public OVRInputState.Buffer HandTrigger(java.nio.FloatBuffer value)
Copies the specifiedFloatBufferto theHandTriggerfield.
-
HandTrigger
public OVRInputState.Buffer HandTrigger(int index, float value)
Sets the specified value at the specified index of theHandTriggerfield.
-
Thumbstick
public OVRInputState.Buffer Thumbstick(OVRVector2f.Buffer value)
Copies the specifiedOVRVector2f.Bufferto theThumbstickfield.
-
Thumbstick
public OVRInputState.Buffer Thumbstick(int index, OVRVector2f value)
Copies the specifiedOVRVector2fat the specified index of theThumbstickfield.
-
ControllerType
public OVRInputState.Buffer ControllerType(int value)
Sets the specified value to theControllerTypefield.
-
-