Package org.lwjgl.system.windows
Class HARDWAREINPUT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.windows.HARDWAREINPUT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,NativeResource,Pointer
public class HARDWAREINPUT extends Struct implements NativeResource
Contains information about a simulated message generated by an input device other than a keyboard or mouse.Member documentation
uMsg– the message generated by the input hardwarewParamL– the low-order word of thelParamparameter foruMsgwParamH– the high-order word of thelParamparameter foruMsg
Layout
struct HARDWAREINPUT { DWORD uMsg; WORD wParamL; WORD wParamH; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHARDWAREINPUT.BufferAn array ofHARDWAREINPUTstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intSIZEOFThe struct size in bytes.static intUMSG
WPARAMH
WPARAMLThe struct member offsets.-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor Description HARDWAREINPUT(java.nio.ByteBuffer container)Creates aHARDWAREINPUTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HARDWAREINPUTcalloc()Returns a newHARDWAREINPUTinstance allocated withmemCalloc.static HARDWAREINPUT.Buffercalloc(int capacity)Returns a newHARDWAREINPUT.Bufferinstance allocated withmemCalloc.static HARDWAREINPUTcallocStack()Returns a newHARDWAREINPUTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static HARDWAREINPUT.BuffercallocStack(int capacity)Returns a newHARDWAREINPUT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static HARDWAREINPUT.BuffercallocStack(int capacity, MemoryStack stack)Returns a newHARDWAREINPUT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static HARDWAREINPUTcallocStack(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 HARDWAREINPUTcreateSafe(long address)static 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 HARDWAREINPUTmallocStack()Returns a newHARDWAREINPUTinstance allocated on the thread-localMemoryStack.static HARDWAREINPUT.BuffermallocStack(int capacity)Returns a newHARDWAREINPUT.Bufferinstance allocated on the thread-localMemoryStack.static HARDWAREINPUT.BuffermallocStack(int capacity, MemoryStack stack)Returns a newHARDWAREINPUT.Bufferinstance allocated on the specifiedMemoryStack.static HARDWAREINPUTmallocStack(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.HARDWAREINPUTset(int uMsg, short wParamL, short wParamH)Initializes this struct with the specified values.HARDWAREINPUTset(HARDWAREINPUT src)Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intuMsg()Returns the value of theuMsgfield.HARDWAREINPUTuMsg(int value)Sets the specified value to theuMsgfield.shortwParamH()Returns the value of thewParamHfield.HARDWAREINPUTwParamH(short value)Sets the specified value to thewParamHfield.shortwParamL()Returns the value of thewParamLfield.HARDWAREINPUTwParamL(short value)Sets the specified value to thewParamLfield.-
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
-
-
-
Constructor Detail
-
HARDWAREINPUT
public HARDWAREINPUT(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
Description copied from class:StructReturnssizeof(struct).
-
uMsg
public int uMsg()
Returns the value of theuMsgfield.
-
wParamL
public short wParamL()
Returns the value of thewParamLfield.
-
wParamH
public short wParamH()
Returns the value of thewParamHfield.
-
uMsg
public HARDWAREINPUT uMsg(int value)
Sets the specified value to theuMsgfield.
-
wParamL
public HARDWAREINPUT wParamL(short value)
Sets the specified value to thewParamLfield.
-
wParamH
public HARDWAREINPUT wParamH(short value)
Sets the specified value to thewParamHfield.
-
set
public HARDWAREINPUT set(int uMsg, short wParamL, short wParamH)
Initializes this struct with the specified values.
-
set
public HARDWAREINPUT set(HARDWAREINPUT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static HARDWAREINPUT malloc()
Returns a newHARDWAREINPUTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static HARDWAREINPUT calloc()
Returns a newHARDWAREINPUTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static HARDWAREINPUT create()
Returns a newHARDWAREINPUTinstance allocated withBufferUtils.
-
create
public static HARDWAREINPUT create(long address)
Returns a newHARDWAREINPUTinstance for the specified memory address.
-
createSafe
@Nullable public static HARDWAREINPUT createSafe(long address)
-
malloc
public static HARDWAREINPUT.Buffer malloc(int capacity)
Returns a newHARDWAREINPUT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static HARDWAREINPUT.Buffer calloc(int capacity)
Returns a newHARDWAREINPUT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static HARDWAREINPUT.Buffer create(int capacity)
Returns a newHARDWAREINPUT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static HARDWAREINPUT.Buffer create(long address, int capacity)
Create aHARDWAREINPUT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static HARDWAREINPUT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static HARDWAREINPUT mallocStack()
Returns a newHARDWAREINPUTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static HARDWAREINPUT callocStack()
Returns a newHARDWAREINPUTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static HARDWAREINPUT mallocStack(MemoryStack stack)
Returns a newHARDWAREINPUTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static HARDWAREINPUT callocStack(MemoryStack stack)
Returns a newHARDWAREINPUTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static HARDWAREINPUT.Buffer mallocStack(int capacity)
Returns a newHARDWAREINPUT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static HARDWAREINPUT.Buffer callocStack(int capacity)
Returns a newHARDWAREINPUT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static HARDWAREINPUT.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newHARDWAREINPUT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static HARDWAREINPUT.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newHARDWAREINPUT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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.
-
-