Package org.lwjgl.openvr
Class VREventKeyboard
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VREventKeyboard
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VREventKeyboard extends org.lwjgl.system.Struct
Used for keyboard events.Member documentation
cNewInput[8]
– up to 8 bytes of new inputuUserValue
– possible flags about the new input
Layout
struct VREvent_Keyboard_t { char cNewInput[8]; uint64_t uUserValue; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VREventKeyboard.Buffer
An array ofVREventKeyboard
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
CNEWINPUT
The struct member offsets.static int
SIZEOF
The struct size in bytes.static int
UUSERVALUE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VREventKeyboard(java.nio.ByteBuffer container)
Creates aVREventKeyboard
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
cNewInput()
Returns aByteBuffer
view of thecNewInput
field.byte
cNewInput(int index)
Returns the value at the specified index of thecNewInput
field.static VREventKeyboard
create(long address)
Returns a newVREventKeyboard
instance for the specified memory address.static VREventKeyboard.Buffer
create(long address, int capacity)
Create aVREventKeyboard.Buffer
instance at the specified memory.static VREventKeyboard
createSafe(long address)
static VREventKeyboard.Buffer
createSafe(long address, int capacity)
static java.nio.ByteBuffer
ncNewInput(long struct)
Unsafe version ofcNewInput()
.static byte
ncNewInput(long struct, int index)
Unsafe version ofcNewInput
.static long
nuUserValue(long struct)
Unsafe version ofuUserValue()
.int
sizeof()
long
uUserValue()
Returns the value of theuUserValue
field.
-
-
-
Constructor Detail
-
VREventKeyboard
public VREventKeyboard(java.nio.ByteBuffer container)
Creates aVREventKeyboard
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
-
cNewInput
public java.nio.ByteBuffer cNewInput()
Returns aByteBuffer
view of thecNewInput
field.
-
cNewInput
public byte cNewInput(int index)
Returns the value at the specified index of thecNewInput
field.
-
uUserValue
public long uUserValue()
Returns the value of theuUserValue
field.
-
create
public static VREventKeyboard create(long address)
Returns a newVREventKeyboard
instance for the specified memory address.
-
createSafe
@Nullable public static VREventKeyboard createSafe(long address)
-
create
public static VREventKeyboard.Buffer create(long address, int capacity)
Create aVREventKeyboard.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VREventKeyboard.Buffer createSafe(long address, int capacity)
-
ncNewInput
public static java.nio.ByteBuffer ncNewInput(long struct)
Unsafe version ofcNewInput()
.
-
ncNewInput
public static byte ncNewInput(long struct, int index)
Unsafe version ofcNewInput
.
-
nuUserValue
public static long nuUserValue(long struct)
Unsafe version ofuUserValue()
.
-
-