Package org.lwjgl.openvr
Class VREventController
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VREventController
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VREventController extends org.lwjgl.system.StructUsed for controller button events.Layout
struct VREvent_Controller_t { uint32_tbutton(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVREventController.BufferAn array ofVREventControllerstructs.
-
Constructor Summary
Constructors Constructor Description VREventController(java.nio.ByteBuffer container)Creates aVREventControllerinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
-
-
-
Constructor Detail
-
VREventController
public VREventController(java.nio.ByteBuffer container)
Creates aVREventControllerinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
button
public int button()
one of:
-
create
public static VREventController create(long address)
Returns a newVREventControllerinstance for the specified memory address.
-
createSafe
@Nullable public static VREventController createSafe(long address)
-
create
public static VREventController.Buffer create(long address, int capacity)
Create aVREventController.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VREventController.Buffer createSafe(long address, int capacity)
-
nbutton
public static int nbutton(long struct)
Unsafe version ofbutton().
-
-