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.StructUsed for keyboard events.Layout
struct VREvent_Keyboard_t { charcNewInput()[8]; uint64_tuUserValue(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVREventKeyboard.BufferAn array ofVREventKeyboardstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCNEWINPUTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intUUSERVALUEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VREventKeyboard(java.nio.ByteBuffer container)Creates aVREventKeyboardinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffercNewInput()up to 8 bytes of new inputbytecNewInput(int index)up to 8 bytes of new inputstatic VREventKeyboardcreate(long address)Returns a newVREventKeyboardinstance for the specified memory address.static VREventKeyboard.Buffercreate(long address, int capacity)Create aVREventKeyboard.Bufferinstance at the specified memory.static VREventKeyboardcreateSafe(long address)static VREventKeyboard.BuffercreateSafe(long address, int capacity)static java.nio.ByteBufferncNewInput(long struct)Unsafe version ofcNewInput().static bytencNewInput(long struct, int index)Unsafe version ofcNewInput.static longnuUserValue(long struct)Unsafe version ofuUserValue().intsizeof()longuUserValue()possible flags about the new input
-
-
-
Constructor Detail
-
VREventKeyboard
public VREventKeyboard(java.nio.ByteBuffer container)
Creates aVREventKeyboardinstance 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
-
cNewInput
public java.nio.ByteBuffer cNewInput() public byte cNewInput(int index)
up to 8 bytes of new input
-
uUserValue
public long uUserValue()
possible flags about the new input
-
create
public static VREventKeyboard create(long address)
Returns a newVREventKeyboardinstance 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.Bufferinstance 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().
-
-