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.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 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()Returns aByteBufferview of thecNewInputfield.bytecNewInput(int index)Returns the value at the specified index of thecNewInputfield.static 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()Returns the value of theuUserValuefield.
-
-
-
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()
Returns aByteBufferview of thecNewInputfield.
-
cNewInput
public byte cNewInput(int index)
Returns the value at the specified index of thecNewInputfield.
-
uUserValue
public long uUserValue()
Returns the value of theuUserValuefield.
-
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().
-
-