User32#SendInput to store information for synthesizing input events such as keystrokes, mouse movement, and mouse clicks.
struct INPUT {
DWORD type;
union {
MOUSEINPUT mi;
KEYBDINPUT ki;
HARDWAREINPUT hi;
} DUMMYUNIONNAME;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | INPUT.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | DUMMYUNIONNAME
The struct member offsets. |
| public static final int | DUMMYUNIONNAME_HI
The struct member offsets. |
| public static final int | DUMMYUNIONNAME_KI
The struct member offsets. |
| public static final int | DUMMYUNIONNAME_MI
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | INPUT(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static INPUT | |
| public static INPUT. | calloc(int
the buffer capacity capacity)Returns a new |
| public static INPUT | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static INPUT. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static INPUT | |
| public static INPUT | |
| public static INPUT. | |
| public static INPUT. | |
| protected INPUT | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static INPUT | |
| public static INPUT | |
| public static INPUT. | create(int
the buffer capacity capacity)Returns a new |
| public static INPUT. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static INPUT | |
| public static INPUT. | |
| public HARDWAREINPUT | |
| public INPUT | DUMMYUNIONNAME_hi(HARDWAREINPUT value)
Copies the specified |
| public INPUT | DUMMYUNIONNAME_hi(Consumer<HARDWAREINPUT> consumer)
Passes the |
| public KEYBDINPUT | |
| public INPUT | |
| public INPUT | DUMMYUNIONNAME_ki(Consumer<KEYBDINPUT> consumer)
Passes the |
| public MOUSEINPUT | |
| public INPUT | |
| public INPUT | DUMMYUNIONNAME_mi(Consumer<MOUSEINPUT> consumer)
Passes the |
| public static INPUT | |
| public static INPUT. | |
| public static INPUT | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static INPUT. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static INPUT | |
| public static INPUT | |
| public static INPUT. | |
| public static INPUT. | |
| public static HARDWAREINPUT | |
| public static void | |
| public static KEYBDINPUT | |
| public static void | |
| public static MOUSEINPUT | |
| public static void | |
| public static int | |
| public static void | |
| public INPUT | |
| public int | |
| public int | |
| public INPUT |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| DUMMYUNIONNAME | back to summary |
|---|---|
| public static final int DUMMYUNIONNAME The struct member offsets. | |
| DUMMYUNIONNAME_HI | back to summary |
|---|---|
| public static final int DUMMYUNIONNAME_HI The struct member offsets. | |
| DUMMYUNIONNAME_KI | back to summary |
|---|---|
| public static final int DUMMYUNIONNAME_KI The struct member offsets. | |
| DUMMYUNIONNAME_MI | back to summary |
|---|---|
| public static final int DUMMYUNIONNAME_MI The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TYPE | back to summary |
|---|---|
| public static final int TYPE The struct member offsets. | |
| INPUT | back to summary |
|---|---|
| protected INPUT(long address, ByteBuffer container) | |
| INPUT | back to summary |
|---|---|
| public INPUT(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static INPUT calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static INPUT. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static INPUT calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static INPUT. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static INPUT callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static INPUT callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static INPUT. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static INPUT. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected INPUT create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static INPUT create() Returns a new | |
| create | back to summary |
|---|---|
| public static INPUT create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static INPUT. Returns a new
| |
| create | back to summary |
|---|---|
| public static INPUT. Create a
| |
| createSafe | back to summary |
|---|---|
| public static INPUT createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static INPUT. Like
| |
| DUMMYUNIONNAME_hi | back to summary |
|---|---|
| public HARDWAREINPUT DUMMYUNIONNAME_hi() the information about a simulated hardware event | |
| DUMMYUNIONNAME_hi | back to summary |
|---|---|
| public INPUT DUMMYUNIONNAME_hi(HARDWAREINPUT value) Copies the specified | |
| DUMMYUNIONNAME_hi | back to summary |
|---|---|
| public INPUT DUMMYUNIONNAME_hi(Consumer<HARDWAREINPUT> consumer) Passes the | |
| DUMMYUNIONNAME_ki | back to summary |
|---|---|
| public KEYBDINPUT DUMMYUNIONNAME_ki() the information about a simulated keyboard event | |
| DUMMYUNIONNAME_ki | back to summary |
|---|---|
| public INPUT DUMMYUNIONNAME_ki(KEYBDINPUT value) Copies the specified | |
| DUMMYUNIONNAME_ki | back to summary |
|---|---|
| public INPUT DUMMYUNIONNAME_ki(Consumer<KEYBDINPUT> consumer) Passes the | |
| DUMMYUNIONNAME_mi | back to summary |
|---|---|
| public MOUSEINPUT DUMMYUNIONNAME_mi() the information about a simulated mouse event | |
| DUMMYUNIONNAME_mi | back to summary |
|---|---|
| public INPUT DUMMYUNIONNAME_mi(MOUSEINPUT value) Copies the specified | |
| DUMMYUNIONNAME_mi | back to summary |
|---|---|
| public INPUT DUMMYUNIONNAME_mi(Consumer<MOUSEINPUT> consumer) Passes the | |
| malloc | back to summary |
|---|---|
| public static INPUT malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static INPUT. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static INPUT malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static INPUT. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static INPUT mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static INPUT mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static INPUT. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static INPUT. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nDUMMYUNIONNAME_hi | back to summary |
|---|---|
| public static HARDWAREINPUT nDUMMYUNIONNAME_hi(long struct) Unsafe version of | |
| nDUMMYUNIONNAME_hi | back to summary |
|---|---|
| public static void nDUMMYUNIONNAME_hi(long struct, HARDWAREINPUT value) Unsafe version of | |
| nDUMMYUNIONNAME_ki | back to summary |
|---|---|
| public static KEYBDINPUT nDUMMYUNIONNAME_ki(long struct) Unsafe version of | |
| nDUMMYUNIONNAME_ki | back to summary |
|---|---|
| public static void nDUMMYUNIONNAME_ki(long struct, KEYBDINPUT value) Unsafe version of | |
| nDUMMYUNIONNAME_mi | back to summary |
|---|---|
| public static MOUSEINPUT nDUMMYUNIONNAME_mi(long struct) Unsafe version of | |
| nDUMMYUNIONNAME_mi | back to summary |
|---|---|
| public static void nDUMMYUNIONNAME_mi(long struct, MOUSEINPUT value) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static int ntype(long struct) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static void ntype(long struct, int value) Unsafe version of | |
| set | back to summary |
|---|---|
| public INPUT set(INPUT src) Copies the specified struct data to this struct. | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| type | back to summary | |||
|---|---|---|---|---|
| public int type() the type of the input event. One of:
| ||||
| type | back to summary |
|---|---|
| public INPUT type(int value) Sets the specified value to the | |
INPUT structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final INPUT |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public HARDWAREINPUT | |
| public INPUT. | DUMMYUNIONNAME_hi(HARDWAREINPUT value)
Copies the specified |
| public INPUT. | DUMMYUNIONNAME_hi(Consumer<HARDWAREINPUT> consumer)
Passes the |
| public KEYBDINPUT | |
| public INPUT. | DUMMYUNIONNAME_ki(KEYBDINPUT value)
Copies the specified |
| public INPUT. | DUMMYUNIONNAME_ki(Consumer<KEYBDINPUT> consumer)
Passes the |
| public MOUSEINPUT | |
| public INPUT. | DUMMYUNIONNAME_mi(MOUSEINPUT value)
Copies the specified |
| public INPUT. | DUMMYUNIONNAME_mi(Consumer<MOUSEINPUT> consumer)
Passes the |
| protected INPUT | |
| protected INPUT. | |
| public int | |
| public INPUT. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final INPUT ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| DUMMYUNIONNAME_hi | back to summary |
|---|---|
public HARDWAREINPUT DUMMYUNIONNAME_hi()
| |
| DUMMYUNIONNAME_hi | back to summary |
|---|---|
| public INPUT. Copies the specified | |
| DUMMYUNIONNAME_hi | back to summary |
|---|---|
| public INPUT. Passes the | |
| DUMMYUNIONNAME_ki | back to summary |
|---|---|
public KEYBDINPUT DUMMYUNIONNAME_ki()
| |
| DUMMYUNIONNAME_ki | back to summary |
|---|---|
| public INPUT. Copies the specified | |
| DUMMYUNIONNAME_ki | back to summary |
|---|---|
| public INPUT. Passes the | |
| DUMMYUNIONNAME_mi | back to summary |
|---|---|
public MOUSEINPUT DUMMYUNIONNAME_mi()
| |
| DUMMYUNIONNAME_mi | back to summary |
|---|---|
| public INPUT. Copies the specified | |
| DUMMYUNIONNAME_mi | back to summary |
|---|---|
| public INPUT. Passes the | |
| getElementFactory | back to summary |
|---|---|
| protected INPUT getElementFactory() Implements abstract org.
| |
| self | back to summary |
|---|---|
| protected INPUT. Implements abstract org.
| |
| type | back to summary |
|---|---|
public int type()
| |
| type | back to summary |
|---|---|
| public INPUT. Sets the specified value to the | |