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.Member documentation
button– one of:
Layout
struct VREvent_Controller_t { uint32_t button; }
-
-
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intbutton()Returns the value of thebuttonfield.static VREventControllercreate(long address)Returns a newVREventControllerinstance for the specified memory address.static VREventController.Buffercreate(long address, int capacity)Create aVREventController.Bufferinstance at the specified memory.static VREventControllercreateSafe(long address)static VREventController.BuffercreateSafe(long address, int capacity)static intnbutton(long struct)Unsafe version ofbutton().intsizeof()
-
-
-
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()
Returns the value of thebuttonfield.
-
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().
-
-