Package org.lwjgl.system.windows
Class HARDWAREINPUT
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct HARDWAREINPUT {
DWORD uMsg;
WORD wParamL;
WORD wParamH;
}
-
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 size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.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
ConstructorsConstructorDescriptionHARDWAREINPUT
(ByteBuffer container) Creates aHARDWAREINPUT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic HARDWAREINPUT
calloc()
Returns a newHARDWAREINPUT
instance allocated withmemCalloc
.static HARDWAREINPUT.Buffer
calloc
(int capacity) Returns a newHARDWAREINPUT.Buffer
instance allocated withmemCalloc
.static HARDWAREINPUT.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newHARDWAREINPUT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static HARDWAREINPUT
calloc
(MemoryStack stack) Returns a newHARDWAREINPUT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static HARDWAREINPUT
Deprecated.static HARDWAREINPUT.Buffer
callocStack
(int capacity) Deprecated.static HARDWAREINPUT.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static HARDWAREINPUT
callocStack
(MemoryStack stack) Deprecated.static HARDWAREINPUT
create()
Returns a newHARDWAREINPUT
instance allocated withBufferUtils
.static HARDWAREINPUT.Buffer
create
(int capacity) Returns a newHARDWAREINPUT.Buffer
instance allocated withBufferUtils
.static HARDWAREINPUT
create
(long address) Returns a newHARDWAREINPUT
instance for the specified memory address.static HARDWAREINPUT.Buffer
create
(long address, int capacity) Create aHARDWAREINPUT.Buffer
instance at the specified memory.static @Nullable HARDWAREINPUT
createSafe
(long address) static @Nullable HARDWAREINPUT.Buffer
createSafe
(long address, int capacity) static HARDWAREINPUT
malloc()
Returns a newHARDWAREINPUT
instance allocated withmemAlloc
.static HARDWAREINPUT.Buffer
malloc
(int capacity) Returns a newHARDWAREINPUT.Buffer
instance allocated withmemAlloc
.static HARDWAREINPUT.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newHARDWAREINPUT.Buffer
instance allocated on the specifiedMemoryStack
.static HARDWAREINPUT
malloc
(MemoryStack stack) Returns a newHARDWAREINPUT
instance allocated on the specifiedMemoryStack
.static HARDWAREINPUT
Deprecated.static HARDWAREINPUT.Buffer
mallocStack
(int capacity) Deprecated.static HARDWAREINPUT.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static HARDWAREINPUT
mallocStack
(MemoryStack stack) Deprecated.static int
nuMsg
(long struct) Unsafe version ofuMsg()
.static void
nuMsg
(long struct, int value) Unsafe version ofuMsg
.static short
nwParamH
(long struct) Unsafe version ofwParamH()
.static void
nwParamH
(long struct, short value) Unsafe version ofwParamH
.static short
nwParamL
(long struct) Unsafe version ofwParamL()
.static void
nwParamL
(long struct, short value) Unsafe version ofwParamL
.set
(int uMsg, short wParamL, short wParamH) Initializes this struct with the specified values.set
(HARDWAREINPUT src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
uMsg()
uMsg
(int value) Sets the specified value to theuMsg
field.short
wParamH()
wParamH
(short value) Sets the specified value to thewParamH
field.short
wParamL()
wParamL
(short value) Sets the specified value to thewParamL
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. -
UMSG
public static final int UMSGThe struct member offsets. -
WPARAML
public static final int WPARAMLThe struct member offsets. -
WPARAMH
public static final int WPARAMHThe struct member offsets.
-
-
Constructor Details
-
HARDWAREINPUT
Creates aHARDWAREINPUT
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)
.- Specified by:
sizeof
in classStruct<HARDWAREINPUT>
-
uMsg
public int uMsg()- Returns:
- the value of the
uMsg
field.
-
wParamL
public short wParamL()- Returns:
- the value of the
wParamL
field.
-
wParamH
public short wParamH()- Returns:
- the value of the
wParamH
field.
-
uMsg
Sets the specified value to theuMsg
field. -
wParamL
Sets the specified value to thewParamL
field. -
wParamH
Sets the specified value to thewParamH
field. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newHARDWAREINPUT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newHARDWAREINPUT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newHARDWAREINPUT
instance allocated withBufferUtils
. -
create
Returns a newHARDWAREINPUT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newHARDWAREINPUT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newHARDWAREINPUT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newHARDWAREINPUT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aHARDWAREINPUT.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 newHARDWAREINPUT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newHARDWAREINPUT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newHARDWAREINPUT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newHARDWAREINPUT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nuMsg
public static int nuMsg(long struct) Unsafe version ofuMsg()
. -
nwParamL
public static short nwParamL(long struct) Unsafe version ofwParamL()
. -
nwParamH
public static short nwParamH(long struct) Unsafe version ofwParamH()
. -
nuMsg
public static void nuMsg(long struct, int value) Unsafe version ofuMsg
. -
nwParamL
public static void nwParamL(long struct, short value) Unsafe version ofwParamL
. -
nwParamH
public static void nwParamH(long struct, short value) Unsafe version ofwParamH
.
-