Package org.lwjgl.system.windows
Class HARDWAREINPUT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<HARDWAREINPUT>
org.lwjgl.system.windows.HARDWAREINPUT
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class HARDWAREINPUT
extends org.lwjgl.system.Struct<HARDWAREINPUT>
implements org.lwjgl.system.NativeResource
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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, org.lwjgl.system.MemoryStack stack) Returns a newHARDWAREINPUT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static HARDWAREINPUTcalloc(org.lwjgl.system.MemoryStack stack) Returns a newHARDWAREINPUTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static HARDWAREINPUTDeprecated.static HARDWAREINPUT.BuffercallocStack(int capacity) Deprecated.static HARDWAREINPUT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static HARDWAREINPUTcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.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, org.lwjgl.system.MemoryStack stack) Returns a newHARDWAREINPUT.Bufferinstance allocated on the specifiedMemoryStack.static HARDWAREINPUTmalloc(org.lwjgl.system.MemoryStack stack) Returns a newHARDWAREINPUTinstance allocated on the specifiedMemoryStack.static HARDWAREINPUTDeprecated.static HARDWAREINPUT.BuffermallocStack(int capacity) Deprecated.static HARDWAREINPUT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static HARDWAREINPUTmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.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()intuMsg()the message generated by the input hardwareuMsg(int value) Sets the specified value to theuMsg()field.shortwParamH()the high-order word of thelParamparameter foruMsgwParamH(short value) Sets the specified value to thewParamH()field.shortwParamL()the low-order word of thelParamparameter foruMsgwParamL(short value) Sets the specified value to thewParamL()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<HARDWAREINPUT>
-
uMsg
public int uMsg()the message generated by the input hardware -
wParamL
public short wParamL()the low-order word of thelParamparameter foruMsg -
wParamH
public short wParamH()the high-order word of thelParamparameter foruMsg -
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 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
-
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 public static HARDWAREINPUT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static HARDWAREINPUT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
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.
-