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 thelParam
parameter foruMsg
wParamH
– the high-order word of thelParam
parameter foruMsg
Layout
struct HARDWAREINPUT { DWORD uMsg; WORD wParamL; WORD wParamH; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HARDWAREINPUT.Buffer
An array ofHARDWAREINPUT
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
SIZEOF
The struct size in bytes.static int
UMSG
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 aHARDWAREINPUT
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HARDWAREINPUT
calloc()
Returns a newHARDWAREINPUT
instance allocated withmemCalloc
.static HARDWAREINPUT.Buffer
calloc(int capacity)
Returns a newHARDWAREINPUT.Buffer
instance allocated withmemCalloc
.static HARDWAREINPUT
callocStack()
Returns a newHARDWAREINPUT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static HARDWAREINPUT.Buffer
callocStack(int capacity)
Returns a newHARDWAREINPUT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static HARDWAREINPUT.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newHARDWAREINPUT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static HARDWAREINPUT
callocStack(MemoryStack stack)
Returns a newHARDWAREINPUT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.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 HARDWAREINPUT
createSafe(long address)
static 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
mallocStack()
Returns a newHARDWAREINPUT
instance allocated on the thread-localMemoryStack
.static HARDWAREINPUT.Buffer
mallocStack(int capacity)
Returns a newHARDWAREINPUT.Buffer
instance allocated on the thread-localMemoryStack
.static HARDWAREINPUT.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newHARDWAREINPUT.Buffer
instance allocated on the specifiedMemoryStack
.static HARDWAREINPUT
mallocStack(MemoryStack stack)
Returns a newHARDWAREINPUT
instance allocated on the specifiedMemoryStack
.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
.HARDWAREINPUT
set(int uMsg, short wParamL, short wParamH)
Initializes this struct with the specified values.HARDWAREINPUT
set(HARDWAREINPUT src)
Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
uMsg()
Returns the value of theuMsg
field.HARDWAREINPUT
uMsg(int value)
Sets the specified value to theuMsg
field.short
wParamH()
Returns the value of thewParamH
field.HARDWAREINPUT
wParamH(short value)
Sets the specified value to thewParamH
field.short
wParamL()
Returns the value of thewParamL
field.HARDWAREINPUT
wParamL(short value)
Sets the specified value to thewParamL
field.-
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 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 Detail
-
sizeof
public int sizeof()
Description copied from class:Struct
Returnssizeof(struct)
.
-
uMsg
public int uMsg()
Returns the value of theuMsg
field.
-
wParamL
public short wParamL()
Returns the value of thewParamL
field.
-
wParamH
public short wParamH()
Returns the value of thewParamH
field.
-
uMsg
public HARDWAREINPUT uMsg(int value)
Sets the specified value to theuMsg
field.
-
wParamL
public HARDWAREINPUT wParamL(short value)
Sets the specified value to thewParamL
field.
-
wParamH
public HARDWAREINPUT wParamH(short value)
Sets the specified value to thewParamH
field.
-
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 newHARDWAREINPUT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static HARDWAREINPUT calloc()
Returns a newHARDWAREINPUT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static HARDWAREINPUT create()
Returns a newHARDWAREINPUT
instance allocated withBufferUtils
.
-
create
public static HARDWAREINPUT create(long address)
Returns a newHARDWAREINPUT
instance for the specified memory address.
-
createSafe
@Nullable public static HARDWAREINPUT createSafe(long address)
-
malloc
public static HARDWAREINPUT.Buffer malloc(int capacity)
Returns a newHARDWAREINPUT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static HARDWAREINPUT.Buffer calloc(int capacity)
Returns a newHARDWAREINPUT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static HARDWAREINPUT.Buffer create(int capacity)
Returns a newHARDWAREINPUT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static HARDWAREINPUT.Buffer create(long address, int capacity)
Create aHARDWAREINPUT.Buffer
instance 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 newHARDWAREINPUT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static HARDWAREINPUT callocStack()
Returns a newHARDWAREINPUT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static HARDWAREINPUT mallocStack(MemoryStack stack)
Returns a newHARDWAREINPUT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static HARDWAREINPUT callocStack(MemoryStack stack)
Returns a newHARDWAREINPUT
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static HARDWAREINPUT.Buffer callocStack(int capacity)
Returns a newHARDWAREINPUT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static HARDWAREINPUT.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newHARDWAREINPUT.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-