Package org.lwjgl.openvr
Class VRControllerState.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<VRControllerState,VRControllerState.Buffer>
-
- org.lwjgl.openvr.VRControllerState.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<VRControllerState>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- VRControllerState
public static class VRControllerState.Buffer extends org.lwjgl.system.StructBuffer<VRControllerState,VRControllerState.Buffer> implements org.lwjgl.system.NativeResource
An array ofVRControllerState
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VRControllerAxis.Buffer
rAxis()
Returns aVRControllerAxis
.Buffer view of therAxis
field.VRControllerAxis
rAxis(int index)
Returns aVRControllerAxis
view of the struct at the specified index of therAxis
field.VRControllerState.Buffer
rAxis(int index, java.util.function.Consumer<VRControllerAxis> consumer)
Passes the element atindex
of therAxis
field to the specifiedConsumer
.VRControllerState.Buffer
rAxis(int index, VRControllerAxis value)
Copies the specifiedVRControllerAxis
at the specified index of therAxis
field.VRControllerState.Buffer
rAxis(java.util.function.Consumer<VRControllerAxis.Buffer> consumer)
Passes therAxis
field to the specifiedConsumer
.VRControllerState.Buffer
rAxis(VRControllerAxis.Buffer value)
Copies the specifiedVRControllerAxis.Buffer
to therAxis
field.long
ulButtonPressed()
Returns the value of theulButtonPressed
field.VRControllerState.Buffer
ulButtonPressed(long value)
Sets the specified value to theulButtonPressed
field.long
ulButtonTouched()
Returns the value of theulButtonTouched
field.VRControllerState.Buffer
ulButtonTouched(long value)
Sets the specified value to theulButtonTouched
field.int
unPacketNum()
Returns the value of theunPacketNum
field.VRControllerState.Buffer
unPacketNum(int value)
Sets the specified value to theunPacketNum
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newVRControllerState.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 byVRControllerState.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
-
unPacketNum
public int unPacketNum()
Returns the value of theunPacketNum
field.
-
ulButtonPressed
public long ulButtonPressed()
Returns the value of theulButtonPressed
field.
-
ulButtonTouched
public long ulButtonTouched()
Returns the value of theulButtonTouched
field.
-
rAxis
public VRControllerAxis.Buffer rAxis()
Returns aVRControllerAxis
.Buffer view of therAxis
field.
-
rAxis
public VRControllerAxis rAxis(int index)
Returns aVRControllerAxis
view of the struct at the specified index of therAxis
field.
-
unPacketNum
public VRControllerState.Buffer unPacketNum(int value)
Sets the specified value to theunPacketNum
field.
-
ulButtonPressed
public VRControllerState.Buffer ulButtonPressed(long value)
Sets the specified value to theulButtonPressed
field.
-
ulButtonTouched
public VRControllerState.Buffer ulButtonTouched(long value)
Sets the specified value to theulButtonTouched
field.
-
rAxis
public VRControllerState.Buffer rAxis(VRControllerAxis.Buffer value)
Copies the specifiedVRControllerAxis.Buffer
to therAxis
field.
-
rAxis
public VRControllerState.Buffer rAxis(int index, VRControllerAxis value)
Copies the specifiedVRControllerAxis
at the specified index of therAxis
field.
-
rAxis
public VRControllerState.Buffer rAxis(java.util.function.Consumer<VRControllerAxis.Buffer> consumer)
Passes therAxis
field to the specifiedConsumer
.
-
rAxis
public VRControllerState.Buffer rAxis(int index, java.util.function.Consumer<VRControllerAxis> consumer)
Passes the element atindex
of therAxis
field to the specifiedConsumer
.
-
-