Top Description Inners Fields Constructors Methods
org.lwjgl.openvr

public Class VREventKeyboard

extends Struct<VREventKeyboard>
Class Inheritance
Annotations
@NativeType:struct VREvent_Keyboard_t
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

Used for keyboard events.

Layout


struct VREvent_Keyboard_t {
    char cNewInput[8];
    uint64_t uUserValue;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
CNEWINPUT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
UUSERVALUE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
VREventKeyboard(long address, ByteBuffer container)

public
VREventKeyboard(ByteBuffer container)

Creates a VREventKeyboard instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public ByteBuffer
cNewInput()

up to 8 bytes of new input

public byte
cNewInput(int index)

up to 8 bytes of new input

protected VREventKeyboard
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VREventKeyboard
create(long address)

Returns a new VREventKeyboard instance for the specified memory address.

public static VREventKeyboard.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VREventKeyboard.Buffer instance at the specified memory.

public static VREventKeyboard
createSafe(long address)

Like create, but returns null if address is NULL.

public static VREventKeyboard.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public static ByteBuffer
ncNewInput(long struct)

Unsafe version of cNewInput.

public static byte
ncNewInput(long struct, int index)

Unsafe version of cNewInput.

public static long
nuUserValue(long struct)

Unsafe version of uUserValue.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public long
uUserValue()

possible flags about the new input

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

CNEWINPUTback to summary
public static final int CNEWINPUT

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

UUSERVALUEback to summary
public static final int UUSERVALUE

The struct member offsets.

Constructor Detail

VREventKeyboardback to summary
protected VREventKeyboard(long address, ByteBuffer container)
VREventKeyboardback to summary
public VREventKeyboard(ByteBuffer container)

Creates a VREventKeyboard instance at the current position of the specified ByteBuffer 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

cNewInputback to summary
public ByteBuffer cNewInput()

up to 8 bytes of new input

Annotations
@NativeType:char[8]
cNewInputback to summary
public byte cNewInput(int index)

up to 8 bytes of new input

Annotations
@NativeType:char
createback to summary
protected VREventKeyboard create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static VREventKeyboard create(long address)

Returns a new VREventKeyboard instance for the specified memory address.

createback to summary
public static VREventKeyboard.Buffer create(long address, int capacity)

Create a VREventKeyboard.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static VREventKeyboard createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static VREventKeyboard.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
ncNewInputback to summary
public static ByteBuffer ncNewInput(long struct)

Unsafe version of cNewInput.

ncNewInputback to summary
public static byte ncNewInput(long struct, int index)

Unsafe version of cNewInput.

nuUserValueback to summary
public static long nuUserValue(long struct)

Unsafe version of uUserValue.

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
uUserValueback to summary
public long uUserValue()

possible flags about the new input

Annotations
@NativeType:uint64_t
org.lwjgl.openvr back to summary

public Class VREventKeyboard.Buffer

extends StructBuffer<VREventKeyboard, VREventKeyboard.Buffer>
Class Inheritance

An array of VREventKeyboard structs.

Field Summary

Modifier and TypeField and Description
private static final VREventKeyboard

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new VREventKeyboard.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public ByteBuffer

Returns:

a ByteBuffer view of the VREventKeyboard#cNewInput field.
cNewInput
()

public byte

Returns:

the value at the specified index of the VREventKeyboard#cNewInput field.
cNewInput
(int index)

protected VREventKeyboard
protected VREventKeyboard.Buffer
public long

Returns:

the value of the VREventKeyboard#uUserValue field.
uUserValue
()

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final VREventKeyboard ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new VREventKeyboard.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by VREventKeyboard#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

cNewInputback to summary
public ByteBuffer cNewInput()
Returns:ByteBuffer

a ByteBuffer view of the VREventKeyboard#cNewInput field.

Annotations
@NativeType:char[8]
cNewInputback to summary
public byte cNewInput(int index)
Returns:byte

the value at the specified index of the VREventKeyboard#cNewInput field.

Annotations
@NativeType:char
getElementFactoryback to summary
protected VREventKeyboard getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
selfback to summary
protected VREventKeyboard.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
uUserValueback to summary
public long uUserValue()
Returns:long

the value of the VREventKeyboard#uUserValue field.

Annotations
@NativeType:uint64_t