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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The 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 aINPUT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic INPUT
calloc()
Returns a newINPUT
instance allocated withmemCalloc
.static INPUT.Buffer
calloc
(int capacity) Returns a newINPUT.Buffer
instance allocated withmemCalloc
.static INPUT.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newINPUT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static INPUT
calloc
(MemoryStack stack) Returns a newINPUT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static INPUT
Deprecated.static INPUT.Buffer
callocStack
(int capacity) Deprecated.static INPUT.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static INPUT
callocStack
(MemoryStack stack) Deprecated.static INPUT
create()
Returns a newINPUT
instance allocated withBufferUtils
.static INPUT.Buffer
create
(int capacity) Returns a newINPUT.Buffer
instance allocated withBufferUtils
.static INPUT
create
(long address) Returns a newINPUT
instance for the specified memory address.static INPUT.Buffer
create
(long address, int capacity) Create aINPUT.Buffer
instance at the specified memory.static @Nullable INPUT
createSafe
(long address) static @Nullable INPUT.Buffer
createSafe
(long address, int capacity) DUMMYUNIONNAME_hi
(Consumer<HARDWAREINPUT> consumer) Passes thehi
field to the specifiedConsumer
.DUMMYUNIONNAME_hi
(HARDWAREINPUT value) Copies the specifiedHARDWAREINPUT
to thehi
field.DUMMYUNIONNAME_ki
(Consumer<KEYBDINPUT> consumer) Passes theki
field to the specifiedConsumer
.DUMMYUNIONNAME_ki
(KEYBDINPUT value) Copies the specifiedKEYBDINPUT
to theki
field.DUMMYUNIONNAME_mi
(Consumer<MOUSEINPUT> consumer) Passes themi
field to the specifiedConsumer
.DUMMYUNIONNAME_mi
(MOUSEINPUT value) Copies the specifiedMOUSEINPUT
to themi
field.static INPUT
malloc()
Returns a newINPUT
instance allocated withmemAlloc
.static INPUT.Buffer
malloc
(int capacity) Returns a newINPUT.Buffer
instance allocated withmemAlloc
.static INPUT.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newINPUT.Buffer
instance allocated on the specifiedMemoryStack
.static INPUT
malloc
(MemoryStack stack) Returns a newINPUT
instance allocated on the specifiedMemoryStack
.static INPUT
Deprecated.static INPUT.Buffer
mallocStack
(int capacity) Deprecated.static INPUT.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static INPUT
mallocStack
(MemoryStack stack) Deprecated.static HARDWAREINPUT
nDUMMYUNIONNAME_hi
(long struct) Unsafe version ofDUMMYUNIONNAME_hi()
.static void
nDUMMYUNIONNAME_hi
(long struct, HARDWAREINPUT value) Unsafe version ofDUMMYUNIONNAME_hi
.static KEYBDINPUT
nDUMMYUNIONNAME_ki
(long struct) Unsafe version ofDUMMYUNIONNAME_ki()
.static void
nDUMMYUNIONNAME_ki
(long struct, KEYBDINPUT value) Unsafe version ofDUMMYUNIONNAME_ki
.static MOUSEINPUT
nDUMMYUNIONNAME_mi
(long struct) Unsafe version ofDUMMYUNIONNAME_mi()
.static void
nDUMMYUNIONNAME_mi
(long struct, MOUSEINPUT value) Unsafe version ofDUMMYUNIONNAME_mi
.static int
ntype
(long struct) Unsafe version oftype()
.static void
ntype
(long struct, int value) Unsafe version oftype
.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
type()
type
(int value) Sets the specified value to thetype
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aINPUT
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
. -
type
public int type()- Returns:
- the value of the
type
field.
-
DUMMYUNIONNAME_mi
- Returns:
- a
MOUSEINPUT
view of theDUMMYUNIONNAME.mi
field.
-
DUMMYUNIONNAME_ki
- Returns:
- a
KEYBDINPUT
view of theDUMMYUNIONNAME.ki
field.
-
DUMMYUNIONNAME_hi
- Returns:
- a
HARDWAREINPUT
view of theDUMMYUNIONNAME.hi
field.
-
type
Sets the specified value to thetype
field. -
DUMMYUNIONNAME_mi
Copies the specifiedMOUSEINPUT
to themi
field. -
DUMMYUNIONNAME_mi
Passes themi
field to the specifiedConsumer
. -
DUMMYUNIONNAME_ki
Copies the specifiedKEYBDINPUT
to theki
field. -
DUMMYUNIONNAME_ki
Passes theki
field to the specifiedConsumer
. -
DUMMYUNIONNAME_hi
Copies the specifiedHARDWAREINPUT
to thehi
field. -
DUMMYUNIONNAME_hi
Passes thehi
field to the specifiedConsumer
. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newINPUT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newINPUT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newINPUT
instance allocated withBufferUtils
. -
create
Returns a newINPUT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newINPUT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newINPUT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newINPUT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aINPUT.Buffer
instance 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 newINPUT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newINPUT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newINPUT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newINPUT.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-