public class KEYBDINPUT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
wVk –
A virtual-key code.
The code must be a value in the range 1 to 254. If the dwFlags member specifies User32.KEYEVENTF_UNICODE, wVk must be 0.
wScan –
A hardware scan code for the key.
If dwFlags specifies User32.KEYEVENTF_UNICODE, wScan specifies a Unicode character which is to be sent to the foreground application.
dwFlags – specifies various aspects of a keystroke. One of:User32.KEYEVENTF_EXTENDEDKEY | User32.KEYEVENTF_KEYUP | User32.KEYEVENTF_SCANCODE | User32.KEYEVENTF_UNICODE |
time – the time stamp for the event, in milliseconds. If this parameter is zero, the system will provide its own time stamp.dwExtraInfo – an additional value associated with the keystroke. Use the User32.GetMessageExtraInfo() function to obtain this information.
struct KEYBDINPUT {
WORD wVk;
WORD wScan;
DWORD dwFlags;
DWORD time;
ULONG_PTR dwExtraInfo;
}| Modifier and Type | Class and Description |
|---|---|
static class |
KEYBDINPUT.Buffer
An array of
KEYBDINPUT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DWEXTRAINFO
The struct member offsets.
|
static int |
DWFLAGS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TIME
The struct member offsets.
|
static int |
WSCAN
The struct member offsets.
|
static int |
WVK
The struct member offsets.
|
| Constructor and Description |
|---|
KEYBDINPUT(java.nio.ByteBuffer container)
Creates a
KEYBDINPUT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static KEYBDINPUT |
calloc()
Returns a new
KEYBDINPUT instance allocated with memCalloc. |
static KEYBDINPUT.Buffer |
calloc(int capacity)
Returns a new
KEYBDINPUT.Buffer instance allocated with memCalloc. |
static KEYBDINPUT |
callocStack()
Returns a new
KEYBDINPUT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static KEYBDINPUT.Buffer |
callocStack(int capacity)
Returns a new
KEYBDINPUT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static KEYBDINPUT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
KEYBDINPUT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static KEYBDINPUT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
KEYBDINPUT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static KEYBDINPUT |
create()
Returns a new
KEYBDINPUT instance allocated with BufferUtils. |
static KEYBDINPUT.Buffer |
create(int capacity)
Returns a new
KEYBDINPUT.Buffer instance allocated with BufferUtils. |
static KEYBDINPUT |
create(long address)
Returns a new
KEYBDINPUT instance for the specified memory address. |
static KEYBDINPUT.Buffer |
create(long address,
int capacity)
Create a
KEYBDINPUT.Buffer instance at the specified memory. |
static KEYBDINPUT |
createSafe(long address)
|
static KEYBDINPUT.Buffer |
createSafe(long address,
int capacity)
|
long |
dwExtraInfo()
Returns the value of the
dwExtraInfo field. |
KEYBDINPUT |
dwExtraInfo(long value)
Sets the specified value to the
dwExtraInfo field. |
int |
dwFlags()
Returns the value of the
dwFlags field. |
KEYBDINPUT |
dwFlags(int value)
Sets the specified value to the
dwFlags field. |
static KEYBDINPUT |
malloc()
Returns a new
KEYBDINPUT instance allocated with memAlloc. |
static KEYBDINPUT.Buffer |
malloc(int capacity)
Returns a new
KEYBDINPUT.Buffer instance allocated with memAlloc. |
static KEYBDINPUT |
mallocStack()
Returns a new
KEYBDINPUT instance allocated on the thread-local MemoryStack. |
static KEYBDINPUT.Buffer |
mallocStack(int capacity)
Returns a new
KEYBDINPUT.Buffer instance allocated on the thread-local MemoryStack. |
static KEYBDINPUT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
KEYBDINPUT.Buffer instance allocated on the specified MemoryStack. |
static KEYBDINPUT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
KEYBDINPUT instance allocated on the specified MemoryStack. |
static long |
ndwExtraInfo(long struct)
Unsafe version of
dwExtraInfo(). |
static void |
ndwExtraInfo(long struct,
long value)
Unsafe version of
dwExtraInfo. |
static int |
ndwFlags(long struct)
Unsafe version of
dwFlags(). |
static void |
ndwFlags(long struct,
int value)
Unsafe version of
dwFlags. |
static int |
ntime(long struct)
Unsafe version of
time(). |
static void |
ntime(long struct,
int value)
Unsafe version of
time. |
static short |
nwScan(long struct)
Unsafe version of
wScan(). |
static void |
nwScan(long struct,
short value)
Unsafe version of
wScan. |
static short |
nwVk(long struct)
Unsafe version of
wVk(). |
static void |
nwVk(long struct,
short value)
Unsafe version of
wVk. |
KEYBDINPUT |
set(KEYBDINPUT src)
Copies the specified struct data to this struct.
|
KEYBDINPUT |
set(short wVk,
short wScan,
int dwFlags,
int time,
long dwExtraInfo)
Initializes this struct with the specified values.
|
int |
sizeof() |
int |
time()
Returns the value of the
time field. |
KEYBDINPUT |
time(int value)
Sets the specified value to the
time field. |
short |
wScan()
Returns the value of the
wScan field. |
KEYBDINPUT |
wScan(short value)
Sets the specified value to the
wScan field. |
short |
wVk()
Returns the value of the
wVk field. |
KEYBDINPUT |
wVk(short value)
Sets the specified value to the
wVk field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int WVK
public static final int WSCAN
public static final int DWFLAGS
public static final int TIME
public static final int DWEXTRAINFO
public KEYBDINPUT(java.nio.ByteBuffer container)
KEYBDINPUT 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 short wVk()
wVk field.public short wScan()
wScan field.public int dwFlags()
dwFlags field.public int time()
time field.public long dwExtraInfo()
dwExtraInfo field.public KEYBDINPUT wVk(short value)
wVk field.public KEYBDINPUT wScan(short value)
wScan field.public KEYBDINPUT dwFlags(int value)
dwFlags field.public KEYBDINPUT time(int value)
time field.public KEYBDINPUT dwExtraInfo(long value)
dwExtraInfo field.public KEYBDINPUT set(short wVk, short wScan, int dwFlags, int time, long dwExtraInfo)
public KEYBDINPUT set(KEYBDINPUT src)
src - the source structpublic static KEYBDINPUT malloc()
KEYBDINPUT instance allocated with memAlloc. The instance must be explicitly freed.public static KEYBDINPUT calloc()
KEYBDINPUT instance allocated with memCalloc. The instance must be explicitly freed.public static KEYBDINPUT create()
KEYBDINPUT instance allocated with BufferUtils.public static KEYBDINPUT create(long address)
KEYBDINPUT instance for the specified memory address.@Nullable public static KEYBDINPUT createSafe(long address)
public static KEYBDINPUT.Buffer malloc(int capacity)
KEYBDINPUT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static KEYBDINPUT.Buffer calloc(int capacity)
KEYBDINPUT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static KEYBDINPUT.Buffer create(int capacity)
KEYBDINPUT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static KEYBDINPUT.Buffer create(long address, int capacity)
KEYBDINPUT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static KEYBDINPUT.Buffer createSafe(long address, int capacity)
public static KEYBDINPUT mallocStack()
KEYBDINPUT instance allocated on the thread-local MemoryStack.public static KEYBDINPUT callocStack()
KEYBDINPUT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static KEYBDINPUT mallocStack(org.lwjgl.system.MemoryStack stack)
KEYBDINPUT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static KEYBDINPUT callocStack(org.lwjgl.system.MemoryStack stack)
KEYBDINPUT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static KEYBDINPUT.Buffer mallocStack(int capacity)
KEYBDINPUT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static KEYBDINPUT.Buffer callocStack(int capacity)
KEYBDINPUT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static KEYBDINPUT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
KEYBDINPUT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static KEYBDINPUT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
KEYBDINPUT.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 short nwVk(long struct)
wVk().public static short nwScan(long struct)
wScan().public static int ndwFlags(long struct)
dwFlags().public static int ntime(long struct)
time().public static long ndwExtraInfo(long struct)
dwExtraInfo().public static void nwVk(long struct,
short value)
wVk.public static void nwScan(long struct,
short value)
wScan.public static void ndwFlags(long struct,
int value)
dwFlags.public static void ntime(long struct,
int value)
time.public static void ndwExtraInfo(long struct,
long value)
dwExtraInfo.Copyright LWJGL. All Rights Reserved. License terms.