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()Returns the value of theButtonsfield.intControllerType()Returns the value of theControllerTypefield.java.nio.FloatBufferHandTrigger()Returns aFloatBufferview of theHandTriggerfield.floatHandTrigger(int index)Returns the value at the specified index of theHandTriggerfield.java.nio.FloatBufferHandTriggerNoDeadzone()Returns aFloatBufferview of theHandTriggerNoDeadzonefield.floatHandTriggerNoDeadzone(int index)Returns the value at the specified index of theHandTriggerNoDeadzonefield.java.nio.FloatBufferHandTriggerRaw()Returns aFloatBufferview of theHandTriggerRawfield.floatHandTriggerRaw(int index)Returns the value at the specified index of theHandTriggerRawfield.java.nio.FloatBufferIndexTrigger()Returns aFloatBufferview of theIndexTriggerfield.floatIndexTrigger(int index)Returns the value at the specified index of theIndexTriggerfield.java.nio.FloatBufferIndexTriggerNoDeadzone()Returns aFloatBufferview of theIndexTriggerNoDeadzonefield.floatIndexTriggerNoDeadzone(int index)Returns the value at the specified index of theIndexTriggerNoDeadzonefield.java.nio.FloatBufferIndexTriggerRaw()Returns aFloatBufferview of theIndexTriggerRawfield.floatIndexTriggerRaw(int index)Returns the value at the specified index of theIndexTriggerRawfield.OVRVector2f.BufferThumbstick()Returns aOVRVector2f.Buffer view of theThumbstickfield.OVRVector2fThumbstick(int index)Returns aOVRVector2fview of the struct at the specified index of theThumbstickfield.OVRVector2f.BufferThumbstickNoDeadzone()Returns aOVRVector2f.Buffer view of theThumbstickNoDeadzonefield.OVRVector2fThumbstickNoDeadzone(int index)Returns aOVRVector2fview of the struct at the specified index of theThumbstickNoDeadzonefield.OVRVector2f.BufferThumbstickRaw()Returns aOVRVector2f.Buffer view of theThumbstickRawfield.OVRVector2fThumbstickRaw(int index)Returns aOVRVector2fview of the struct at the specified index of theThumbstickRawfield.doubleTimeInSeconds()Returns the value of theTimeInSecondsfield.intTouches()Returns the value of theTouchesfield.
-
-
-
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 theTimeInSecondsfield.
-
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.
-
IndexTriggerNoDeadzone
public java.nio.FloatBuffer IndexTriggerNoDeadzone()
Returns aFloatBufferview of theIndexTriggerNoDeadzonefield.
-
IndexTriggerNoDeadzone
public float IndexTriggerNoDeadzone(int index)
Returns the value at the specified index of theIndexTriggerNoDeadzonefield.
-
HandTriggerNoDeadzone
public java.nio.FloatBuffer HandTriggerNoDeadzone()
Returns aFloatBufferview of theHandTriggerNoDeadzonefield.
-
HandTriggerNoDeadzone
public float HandTriggerNoDeadzone(int index)
Returns the value at the specified index of theHandTriggerNoDeadzonefield.
-
ThumbstickNoDeadzone
public OVRVector2f.Buffer ThumbstickNoDeadzone()
Returns aOVRVector2f.Buffer view of theThumbstickNoDeadzonefield.
-
ThumbstickNoDeadzone
public OVRVector2f ThumbstickNoDeadzone(int index)
Returns aOVRVector2fview of the struct at the specified index of theThumbstickNoDeadzonefield.
-
IndexTriggerRaw
public java.nio.FloatBuffer IndexTriggerRaw()
Returns aFloatBufferview of theIndexTriggerRawfield.
-
IndexTriggerRaw
public float IndexTriggerRaw(int index)
Returns the value at the specified index of theIndexTriggerRawfield.
-
HandTriggerRaw
public java.nio.FloatBuffer HandTriggerRaw()
Returns aFloatBufferview of theHandTriggerRawfield.
-
HandTriggerRaw
public float HandTriggerRaw(int index)
Returns the value at the specified index of theHandTriggerRawfield.
-
ThumbstickRaw
public OVRVector2f.Buffer ThumbstickRaw()
Returns aOVRVector2f.Buffer view of theThumbstickRawfield.
-
ThumbstickRaw
public OVRVector2f ThumbstickRaw(int index)
Returns aOVRVector2fview of the struct at the specified index of theThumbstickRawfield.
-
-