public class INPUT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
User32.SendInput(org.lwjgl.system.windows.INPUT.Buffer, int) to store information for synthesizing input events such as keystrokes, mouse movement, and mouse clicks.
type – the type of the input event. One of:User32.INPUT_MOUSE | User32.INPUT_KEYBOARD | User32.INPUT_HARDWARE |
DUMMYUNIONNAME
DUMMYUNIONNAME.mi – the information about a simulated mouse eventDUMMYUNIONNAME.ki – the information about a simulated keyboard eventDUMMYUNIONNAME.hi – the information about a simulated hardware event
struct INPUT {
DWORD type;
union {
MOUSEINPUT mi;
KEYBDINPUT ki;
HARDWAREINPUT hi;
} DUMMYUNIONNAME;
}| Modifier and Type | Class and Description |
|---|---|
static class |
INPUT.Buffer
An array of
INPUT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DUMMYUNIONNAME
The struct member offsets.
|
static int |
DUMMYUNIONNAME_HI
The struct member offsets.
|
static int |
DUMMYUNIONNAME_KI
The struct member offsets.
|
static int |
DUMMYUNIONNAME_MI
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TYPE
The struct member offsets.
|
| Constructor and Description |
|---|
INPUT(java.nio.ByteBuffer container)
Creates a
INPUT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static INPUT |
calloc()
Returns a new
INPUT instance allocated with memCalloc. |
static INPUT.Buffer |
calloc(int capacity)
Returns a new
INPUT.Buffer instance allocated with memCalloc. |
static INPUT |
callocStack()
Returns a new
INPUT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static INPUT.Buffer |
callocStack(int capacity)
Returns a new
INPUT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static INPUT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
INPUT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static INPUT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
INPUT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static INPUT |
create()
Returns a new
INPUT instance allocated with BufferUtils. |
static INPUT.Buffer |
create(int capacity)
Returns a new
INPUT.Buffer instance allocated with BufferUtils. |
static INPUT |
create(long address)
Returns a new
INPUT instance for the specified memory address. |
static INPUT.Buffer |
create(long address,
int capacity)
Create a
INPUT.Buffer instance at the specified memory. |
static INPUT |
createSafe(long address)
|
static INPUT.Buffer |
createSafe(long address,
int capacity)
|
HARDWAREINPUT |
DUMMYUNIONNAME_hi()
Returns a
HARDWAREINPUT view of the DUMMYUNIONNAME.hi field. |
INPUT |
DUMMYUNIONNAME_hi(java.util.function.Consumer<HARDWAREINPUT> consumer)
Passes the
DUMMYUNIONNAME.hi field to the specified Consumer. |
INPUT |
DUMMYUNIONNAME_hi(HARDWAREINPUT value)
Copies the specified
HARDWAREINPUT to the DUMMYUNIONNAME.hi field. |
KEYBDINPUT |
DUMMYUNIONNAME_ki()
Returns a
KEYBDINPUT view of the DUMMYUNIONNAME.ki field. |
INPUT |
DUMMYUNIONNAME_ki(java.util.function.Consumer<KEYBDINPUT> consumer)
Passes the
DUMMYUNIONNAME.ki field to the specified Consumer. |
INPUT |
DUMMYUNIONNAME_ki(KEYBDINPUT value)
Copies the specified
KEYBDINPUT to the DUMMYUNIONNAME.ki field. |
MOUSEINPUT |
DUMMYUNIONNAME_mi()
Returns a
MOUSEINPUT view of the DUMMYUNIONNAME.mi field. |
INPUT |
DUMMYUNIONNAME_mi(java.util.function.Consumer<MOUSEINPUT> consumer)
Passes the
DUMMYUNIONNAME.mi field to the specified Consumer. |
INPUT |
DUMMYUNIONNAME_mi(MOUSEINPUT value)
Copies the specified
MOUSEINPUT to the DUMMYUNIONNAME.mi field. |
static INPUT |
malloc()
Returns a new
INPUT instance allocated with memAlloc. |
static INPUT.Buffer |
malloc(int capacity)
Returns a new
INPUT.Buffer instance allocated with memAlloc. |
static INPUT |
mallocStack()
Returns a new
INPUT instance allocated on the thread-local MemoryStack. |
static INPUT.Buffer |
mallocStack(int capacity)
Returns a new
INPUT.Buffer instance allocated on the thread-local MemoryStack. |
static INPUT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
INPUT.Buffer instance allocated on the specified MemoryStack. |
static INPUT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
INPUT instance allocated on the specified MemoryStack. |
static HARDWAREINPUT |
nDUMMYUNIONNAME_hi(long struct)
Unsafe version of
DUMMYUNIONNAME_hi(). |
static void |
nDUMMYUNIONNAME_hi(long struct,
HARDWAREINPUT value)
Unsafe version of
DUMMYUNIONNAME_hi. |
static KEYBDINPUT |
nDUMMYUNIONNAME_ki(long struct)
Unsafe version of
DUMMYUNIONNAME_ki(). |
static void |
nDUMMYUNIONNAME_ki(long struct,
KEYBDINPUT value)
Unsafe version of
DUMMYUNIONNAME_ki. |
static MOUSEINPUT |
nDUMMYUNIONNAME_mi(long struct)
Unsafe version of
DUMMYUNIONNAME_mi(). |
static void |
nDUMMYUNIONNAME_mi(long struct,
MOUSEINPUT value)
Unsafe version of
DUMMYUNIONNAME_mi. |
static int |
ntype(long struct)
Unsafe version of
type(). |
static void |
ntype(long struct,
int value)
Unsafe version of
type. |
INPUT |
set(INPUT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
type()
Returns the value of the
type field. |
INPUT |
type(int value)
Sets the specified value to the
type field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int TYPE
public static final int DUMMYUNIONNAME
public static final int DUMMYUNIONNAME_MI
public static final int DUMMYUNIONNAME_KI
public static final int DUMMYUNIONNAME_HI
public INPUT(java.nio.ByteBuffer container)
INPUT 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 type()
type field.public MOUSEINPUT DUMMYUNIONNAME_mi()
MOUSEINPUT view of the DUMMYUNIONNAME.mi field.public KEYBDINPUT DUMMYUNIONNAME_ki()
KEYBDINPUT view of the DUMMYUNIONNAME.ki field.public HARDWAREINPUT DUMMYUNIONNAME_hi()
HARDWAREINPUT view of the DUMMYUNIONNAME.hi field.public INPUT type(int value)
type field.public INPUT DUMMYUNIONNAME_mi(MOUSEINPUT value)
MOUSEINPUT to the DUMMYUNIONNAME.mi field.public INPUT DUMMYUNIONNAME_mi(java.util.function.Consumer<MOUSEINPUT> consumer)
DUMMYUNIONNAME.mi field to the specified Consumer.public INPUT DUMMYUNIONNAME_ki(KEYBDINPUT value)
KEYBDINPUT to the DUMMYUNIONNAME.ki field.public INPUT DUMMYUNIONNAME_ki(java.util.function.Consumer<KEYBDINPUT> consumer)
DUMMYUNIONNAME.ki field to the specified Consumer.public INPUT DUMMYUNIONNAME_hi(HARDWAREINPUT value)
HARDWAREINPUT to the DUMMYUNIONNAME.hi field.public INPUT DUMMYUNIONNAME_hi(java.util.function.Consumer<HARDWAREINPUT> consumer)
DUMMYUNIONNAME.hi field to the specified Consumer.public INPUT set(INPUT src)
src - the source structpublic static INPUT malloc()
INPUT instance allocated with memAlloc. The instance must be explicitly freed.public static INPUT calloc()
INPUT instance allocated with memCalloc. The instance must be explicitly freed.public static INPUT create()
INPUT instance allocated with BufferUtils.public static INPUT create(long address)
INPUT instance for the specified memory address.@Nullable public static INPUT createSafe(long address)
public static INPUT.Buffer malloc(int capacity)
INPUT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static INPUT.Buffer calloc(int capacity)
INPUT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static INPUT.Buffer create(int capacity)
INPUT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static INPUT.Buffer create(long address, int capacity)
INPUT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static INPUT.Buffer createSafe(long address, int capacity)
public static INPUT mallocStack()
INPUT instance allocated on the thread-local MemoryStack.public static INPUT callocStack()
INPUT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static INPUT mallocStack(org.lwjgl.system.MemoryStack stack)
INPUT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static INPUT callocStack(org.lwjgl.system.MemoryStack stack)
INPUT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static INPUT.Buffer mallocStack(int capacity)
INPUT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static INPUT.Buffer callocStack(int capacity)
INPUT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static INPUT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
INPUT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static INPUT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
INPUT.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 ntype(long struct)
type().public static MOUSEINPUT nDUMMYUNIONNAME_mi(long struct)
DUMMYUNIONNAME_mi().public static KEYBDINPUT nDUMMYUNIONNAME_ki(long struct)
DUMMYUNIONNAME_ki().public static HARDWAREINPUT nDUMMYUNIONNAME_hi(long struct)
DUMMYUNIONNAME_hi().public static void ntype(long struct,
int value)
type.public static void nDUMMYUNIONNAME_mi(long struct,
MOUSEINPUT value)
DUMMYUNIONNAME_mi.public static void nDUMMYUNIONNAME_ki(long struct,
KEYBDINPUT value)
DUMMYUNIONNAME_ki.public static void nDUMMYUNIONNAME_hi(long struct,
HARDWAREINPUT value)
DUMMYUNIONNAME_hi.Copyright LWJGL. All Rights Reserved. License terms.