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.Struct
Used 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 class
VREventController.Buffer
An array ofVREventController
structs.
-
Constructor Summary
Constructors Constructor Description VREventController(java.nio.ByteBuffer container)
Creates aVREventController
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
button()
Returns the value of thebutton
field.static VREventController
create(long address)
Returns a newVREventController
instance for the specified memory address.static VREventController.Buffer
create(long address, int capacity)
Create aVREventController.Buffer
instance at the specified memory.static VREventController
createSafe(long address)
static VREventController.Buffer
createSafe(long address, int capacity)
static int
nbutton(long struct)
Unsafe version ofbutton()
.int
sizeof()
-
-
-
Constructor Detail
-
VREventController
public VREventController(java.nio.ByteBuffer container)
Creates aVREventController
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
button
public int button()
Returns the value of thebutton
field.
-
create
public static VREventController create(long address)
Returns a newVREventController
instance 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.Buffer
instance 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()
.
-
-