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.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 size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.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
ConstructorsConstructorDescriptionHARDWAREINPUT(ByteBuffer container) Creates aHARDWAREINPUTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic HARDWAREINPUTcalloc()Returns a newHARDWAREINPUTinstance allocated withmemCalloc.static HARDWAREINPUT.Buffercalloc(int capacity) Returns a newHARDWAREINPUT.Bufferinstance allocated withmemCalloc.static HARDWAREINPUT.Buffercalloc(int capacity, MemoryStack stack) Returns a newHARDWAREINPUT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static HARDWAREINPUTcalloc(MemoryStack stack) Returns a newHARDWAREINPUTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static HARDWAREINPUTcreate()Returns a newHARDWAREINPUTinstance allocated withBufferUtils.static HARDWAREINPUT.Buffercreate(int capacity) Returns a newHARDWAREINPUT.Bufferinstance allocated withBufferUtils.static HARDWAREINPUTcreate(long address) Returns a newHARDWAREINPUTinstance for the specified memory address.static HARDWAREINPUT.Buffercreate(long address, int capacity) Create aHARDWAREINPUT.Bufferinstance at the specified memory.static @Nullable HARDWAREINPUTcreateSafe(long address) static @Nullable HARDWAREINPUT.BuffercreateSafe(long address, int capacity) static HARDWAREINPUTmalloc()Returns a newHARDWAREINPUTinstance allocated withmemAlloc.static HARDWAREINPUT.Buffermalloc(int capacity) Returns a newHARDWAREINPUT.Bufferinstance allocated withmemAlloc.static HARDWAREINPUT.Buffermalloc(int capacity, MemoryStack stack) Returns a newHARDWAREINPUT.Bufferinstance allocated on the specifiedMemoryStack.static HARDWAREINPUTmalloc(MemoryStack stack) Returns a newHARDWAREINPUTinstance allocated on the specifiedMemoryStack.static intnuMsg(long struct) Unsafe version ofuMsg().static voidnuMsg(long struct, int value) Unsafe version ofuMsg.static shortnwParamH(long struct) Unsafe version ofwParamH().static voidnwParamH(long struct, short value) Unsafe version ofwParamH.static shortnwParamL(long struct) Unsafe version ofwParamL().static voidnwParamL(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.intsizeof()Returnssizeof(struct).intuMsg()uMsg(int value) Sets the specified value to theuMsgfield.shortwParamH()wParamH(short value) Sets the specified value to thewParamHfield.shortwParamL()wParamL(short value) Sets the specified value to thewParamLfield.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. -
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 aHARDWAREINPUTinstance 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).- Specified by:
sizeofin classStruct<HARDWAREINPUT>
-
uMsg
public int uMsg()- Returns:
- the value of the
uMsgfield.
-
wParamL
public short wParamL()- Returns:
- the value of the
wParamLfield.
-
wParamH
public short wParamH()- Returns:
- the value of the
wParamHfield.
-
uMsg
Sets the specified value to theuMsgfield. -
wParamL
Sets the specified value to thewParamLfield. -
wParamH
Sets the specified value to thewParamHfield. -
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 newHARDWAREINPUTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newHARDWAREINPUTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newHARDWAREINPUTinstance allocated withBufferUtils. -
create
Returns a newHARDWAREINPUTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newHARDWAREINPUT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newHARDWAREINPUT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newHARDWAREINPUT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aHARDWAREINPUT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newHARDWAREINPUTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newHARDWAREINPUTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newHARDWAREINPUT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newHARDWAREINPUT.Bufferinstance allocated on the specifiedMemoryStackand 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.
-