public class HARDWAREINPUT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
uMsg – the message generated by the input hardwarewParamL – the low-order word of the lParam parameter for uMsgwParamH – the high-order word of the lParam parameter for uMsg
struct HARDWAREINPUT {
DWORD uMsg;
WORD wParamL;
WORD wParamH;
}| Modifier and Type | Class and Description |
|---|---|
static class |
HARDWAREINPUT.Buffer
An array of
HARDWAREINPUT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
UMSG
The struct member offsets.
|
static int |
WPARAMH
The struct member offsets.
|
static int |
WPARAML
The struct member offsets.
|
| Constructor and Description |
|---|
HARDWAREINPUT(java.nio.ByteBuffer container)
Creates a
HARDWAREINPUT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static HARDWAREINPUT |
calloc()
Returns a new
HARDWAREINPUT instance allocated with memCalloc. |
static HARDWAREINPUT.Buffer |
calloc(int capacity)
Returns a new
HARDWAREINPUT.Buffer instance allocated with memCalloc. |
static HARDWAREINPUT |
callocStack()
Returns a new
HARDWAREINPUT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static HARDWAREINPUT.Buffer |
callocStack(int capacity)
Returns a new
HARDWAREINPUT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static HARDWAREINPUT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
HARDWAREINPUT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static HARDWAREINPUT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
HARDWAREINPUT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static HARDWAREINPUT |
create()
Returns a new
HARDWAREINPUT instance allocated with BufferUtils. |
static HARDWAREINPUT.Buffer |
create(int capacity)
Returns a new
HARDWAREINPUT.Buffer instance allocated with BufferUtils. |
static HARDWAREINPUT |
create(long address)
Returns a new
HARDWAREINPUT instance for the specified memory address. |
static HARDWAREINPUT.Buffer |
create(long address,
int capacity)
Create a
HARDWAREINPUT.Buffer instance at the specified memory. |
static HARDWAREINPUT |
createSafe(long address)
|
static HARDWAREINPUT.Buffer |
createSafe(long address,
int capacity)
|
static HARDWAREINPUT |
malloc()
Returns a new
HARDWAREINPUT instance allocated with memAlloc. |
static HARDWAREINPUT.Buffer |
malloc(int capacity)
Returns a new
HARDWAREINPUT.Buffer instance allocated with memAlloc. |
static HARDWAREINPUT |
mallocStack()
Returns a new
HARDWAREINPUT instance allocated on the thread-local MemoryStack. |
static HARDWAREINPUT.Buffer |
mallocStack(int capacity)
Returns a new
HARDWAREINPUT.Buffer instance allocated on the thread-local MemoryStack. |
static HARDWAREINPUT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
HARDWAREINPUT.Buffer instance allocated on the specified MemoryStack. |
static HARDWAREINPUT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
HARDWAREINPUT instance allocated on the specified MemoryStack. |
static int |
nuMsg(long struct)
Unsafe version of
uMsg(). |
static void |
nuMsg(long struct,
int value)
Unsafe version of
uMsg. |
static short |
nwParamH(long struct)
Unsafe version of
wParamH(). |
static void |
nwParamH(long struct,
short value)
Unsafe version of
wParamH. |
static short |
nwParamL(long struct)
Unsafe version of
wParamL(). |
static void |
nwParamL(long struct,
short value)
Unsafe version of
wParamL. |
HARDWAREINPUT |
set(HARDWAREINPUT src)
Copies the specified struct data to this struct.
|
HARDWAREINPUT |
set(int uMsg,
short wParamL,
short wParamH)
Initializes this struct with the specified values.
|
int |
sizeof() |
int |
uMsg()
Returns the value of the
uMsg field. |
HARDWAREINPUT |
uMsg(int value)
Sets the specified value to the
uMsg field. |
short |
wParamH()
Returns the value of the
wParamH field. |
HARDWAREINPUT |
wParamH(short value)
Sets the specified value to the
wParamH field. |
short |
wParamL()
Returns the value of the
wParamL field. |
HARDWAREINPUT |
wParamL(short value)
Sets the specified value to the
wParamL field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int UMSG
public static final int WPARAML
public static final int WPARAMH
public HARDWAREINPUT(java.nio.ByteBuffer container)
HARDWAREINPUT instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int uMsg()
uMsg field.public short wParamL()
wParamL field.public short wParamH()
wParamH field.public HARDWAREINPUT uMsg(int value)
uMsg field.public HARDWAREINPUT wParamL(short value)
wParamL field.public HARDWAREINPUT wParamH(short value)
wParamH field.public HARDWAREINPUT set(int uMsg, short wParamL, short wParamH)
public HARDWAREINPUT set(HARDWAREINPUT src)
src - the source structpublic static HARDWAREINPUT malloc()
HARDWAREINPUT instance allocated with memAlloc. The instance must be explicitly freed.public static HARDWAREINPUT calloc()
HARDWAREINPUT instance allocated with memCalloc. The instance must be explicitly freed.public static HARDWAREINPUT create()
HARDWAREINPUT instance allocated with BufferUtils.public static HARDWAREINPUT create(long address)
HARDWAREINPUT instance for the specified memory address.@Nullable public static HARDWAREINPUT createSafe(long address)
public static HARDWAREINPUT.Buffer malloc(int capacity)
HARDWAREINPUT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static HARDWAREINPUT.Buffer calloc(int capacity)
HARDWAREINPUT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static HARDWAREINPUT.Buffer create(int capacity)
HARDWAREINPUT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static HARDWAREINPUT.Buffer create(long address, int capacity)
HARDWAREINPUT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static HARDWAREINPUT.Buffer createSafe(long address, int capacity)
public static HARDWAREINPUT mallocStack()
HARDWAREINPUT instance allocated on the thread-local MemoryStack.public static HARDWAREINPUT callocStack()
HARDWAREINPUT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static HARDWAREINPUT mallocStack(org.lwjgl.system.MemoryStack stack)
HARDWAREINPUT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static HARDWAREINPUT callocStack(org.lwjgl.system.MemoryStack stack)
HARDWAREINPUT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static HARDWAREINPUT.Buffer mallocStack(int capacity)
HARDWAREINPUT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static HARDWAREINPUT.Buffer callocStack(int capacity)
HARDWAREINPUT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static HARDWAREINPUT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
HARDWAREINPUT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static HARDWAREINPUT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
HARDWAREINPUT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nuMsg(long struct)
uMsg().public static short nwParamL(long struct)
wParamL().public static short nwParamH(long struct)
wParamH().public static void nuMsg(long struct,
int value)
uMsg.public static void nwParamL(long struct,
short value)
wParamL.public static void nwParamH(long struct,
short value)
wParamH.Copyright LWJGL. All Rights Reserved. License terms.