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 ofVRControllerStatestructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newVRControllerState.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 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 the
VRControllerState.unPacketNum()field.
-
ulButtonPressed
public long ulButtonPressed()
- Returns:
- the value of the
VRControllerState.ulButtonPressed()field.
-
ulButtonTouched
public long ulButtonTouched()
- Returns:
- the value of the
ulButtonTouchedfield.
-
rAxis
public VRControllerAxis.Buffer rAxis()
- Returns:
- a
VRControllerAxis.Buffer view of theVRControllerState.rAxis()field.
-
rAxis
public VRControllerAxis rAxis(int index)
- Returns:
- a
VRControllerAxisview of the struct at the specified index of theVRControllerState.rAxis()field.
-
unPacketNum
public VRControllerState.Buffer unPacketNum(int value)
Sets the specified value to theVRControllerState.unPacketNum()field.
-
ulButtonPressed
public VRControllerState.Buffer ulButtonPressed(long value)
Sets the specified value to theVRControllerState.ulButtonPressed()field.
-
ulButtonTouched
public VRControllerState.Buffer ulButtonTouched(long value)
Sets the specified value to theulButtonTouchedfield.
-
rAxis
public VRControllerState.Buffer rAxis(VRControllerAxis.Buffer value)
Copies the specifiedVRControllerAxis.Bufferto theVRControllerState.rAxis()field.
-
rAxis
public VRControllerState.Buffer rAxis(int index, VRControllerAxis value)
Copies the specifiedVRControllerAxisat the specified index of theVRControllerState.rAxis()field.
-
rAxis
public VRControllerState.Buffer rAxis(java.util.function.Consumer<VRControllerAxis.Buffer> consumer)
Passes theVRControllerState.rAxis()field to the specifiedConsumer.
-
rAxis
public VRControllerState.Buffer rAxis(int index, java.util.function.Consumer<VRControllerAxis> consumer)
-
-