Package org.lwjgl.system.windows
Class INPUT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct INPUT {
DWORD type;
union {
{@link MOUSEINPUT MOUSEINPUT} mi;
{@link KEYBDINPUT KEYBDINPUT} ki;
{@link HARDWAREINPUT HARDWAREINPUT} hi;
} DUMMYUNIONNAME;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionINPUT(ByteBuffer container) Creates aINPUTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic INPUTcalloc()Returns a newINPUTinstance allocated withmemCalloc.static INPUT.Buffercalloc(int capacity) Returns a newINPUT.Bufferinstance allocated withmemCalloc.static INPUT.Buffercalloc(int capacity, MemoryStack stack) Returns a newINPUT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static INPUTcalloc(MemoryStack stack) Returns a newINPUTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static INPUTDeprecated.static INPUT.BuffercallocStack(int capacity) Deprecated.static INPUT.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static INPUTcallocStack(MemoryStack stack) Deprecated.static INPUTcreate()Returns a newINPUTinstance allocated withBufferUtils.static INPUT.Buffercreate(int capacity) Returns a newINPUT.Bufferinstance allocated withBufferUtils.static INPUTcreate(long address) Returns a newINPUTinstance for the specified memory address.static INPUT.Buffercreate(long address, int capacity) Create aINPUT.Bufferinstance at the specified memory.static @Nullable INPUTcreateSafe(long address) static @Nullable INPUT.BuffercreateSafe(long address, int capacity) DUMMYUNIONNAME_hi(Consumer<HARDWAREINPUT> consumer) Passes thehifield to the specifiedConsumer.DUMMYUNIONNAME_hi(HARDWAREINPUT value) Copies the specifiedHARDWAREINPUTto thehifield.DUMMYUNIONNAME_ki(Consumer<KEYBDINPUT> consumer) Passes thekifield to the specifiedConsumer.DUMMYUNIONNAME_ki(KEYBDINPUT value) Copies the specifiedKEYBDINPUTto thekifield.DUMMYUNIONNAME_mi(Consumer<MOUSEINPUT> consumer) Passes themifield to the specifiedConsumer.DUMMYUNIONNAME_mi(MOUSEINPUT value) Copies the specifiedMOUSEINPUTto themifield.static INPUTmalloc()Returns a newINPUTinstance allocated withmemAlloc.static INPUT.Buffermalloc(int capacity) Returns a newINPUT.Bufferinstance allocated withmemAlloc.static INPUT.Buffermalloc(int capacity, MemoryStack stack) Returns a newINPUT.Bufferinstance allocated on the specifiedMemoryStack.static INPUTmalloc(MemoryStack stack) Returns a newINPUTinstance allocated on the specifiedMemoryStack.static INPUTDeprecated.static INPUT.BuffermallocStack(int capacity) Deprecated.static INPUT.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static INPUTmallocStack(MemoryStack stack) Deprecated.static HARDWAREINPUTnDUMMYUNIONNAME_hi(long struct) Unsafe version ofDUMMYUNIONNAME_hi().static voidnDUMMYUNIONNAME_hi(long struct, HARDWAREINPUT value) Unsafe version ofDUMMYUNIONNAME_hi.static KEYBDINPUTnDUMMYUNIONNAME_ki(long struct) Unsafe version ofDUMMYUNIONNAME_ki().static voidnDUMMYUNIONNAME_ki(long struct, KEYBDINPUT value) Unsafe version ofDUMMYUNIONNAME_ki.static MOUSEINPUTnDUMMYUNIONNAME_mi(long struct) Unsafe version ofDUMMYUNIONNAME_mi().static voidnDUMMYUNIONNAME_mi(long struct, MOUSEINPUT value) Unsafe version ofDUMMYUNIONNAME_mi.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttype()type(int value) Sets the specified value to thetypefield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
DUMMYUNIONNAME
public static final int DUMMYUNIONNAMEThe struct member offsets. -
DUMMYUNIONNAME_MI
public static final int DUMMYUNIONNAME_MIThe struct member offsets. -
DUMMYUNIONNAME_KI
public static final int DUMMYUNIONNAME_KIThe struct member offsets. -
DUMMYUNIONNAME_HI
public static final int DUMMYUNIONNAME_HIThe struct member offsets.
-
-
Constructor Details
-
INPUT
Creates aINPUTinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct). -
type
public int type()- Returns:
- the value of the
typefield.
-
DUMMYUNIONNAME_mi
- Returns:
- a
MOUSEINPUTview of theDUMMYUNIONNAME.mifield.
-
DUMMYUNIONNAME_ki
- Returns:
- a
KEYBDINPUTview of theDUMMYUNIONNAME.kifield.
-
DUMMYUNIONNAME_hi
- Returns:
- a
HARDWAREINPUTview of theDUMMYUNIONNAME.hifield.
-
type
Sets the specified value to thetypefield. -
DUMMYUNIONNAME_mi
Copies the specifiedMOUSEINPUTto themifield. -
DUMMYUNIONNAME_mi
Passes themifield to the specifiedConsumer. -
DUMMYUNIONNAME_ki
Copies the specifiedKEYBDINPUTto thekifield. -
DUMMYUNIONNAME_ki
Passes thekifield to the specifiedConsumer. -
DUMMYUNIONNAME_hi
Copies the specifiedHARDWAREINPUTto thehifield. -
DUMMYUNIONNAME_hi
Passes thehifield to the specifiedConsumer. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newINPUTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newINPUTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newINPUTinstance allocated withBufferUtils. -
create
Returns a newINPUTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newINPUT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newINPUT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newINPUT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aINPUT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newINPUTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newINPUTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newINPUT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newINPUT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nDUMMYUNIONNAME_mi
Unsafe version ofDUMMYUNIONNAME_mi(). -
nDUMMYUNIONNAME_ki
Unsafe version ofDUMMYUNIONNAME_ki(). -
nDUMMYUNIONNAME_hi
Unsafe version ofDUMMYUNIONNAME_hi(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nDUMMYUNIONNAME_mi
Unsafe version ofDUMMYUNIONNAME_mi. -
nDUMMYUNIONNAME_ki
Unsafe version ofDUMMYUNIONNAME_ki. -
nDUMMYUNIONNAME_hi
Unsafe version ofDUMMYUNIONNAME_hi.
-