|
JNA API> 4.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jna.Structure com.sun.jna.platform.win32.WinUser.KEYBDINPUT
public static class WinUser.KEYBDINPUT
Contains information about a simulated keyboard event.
Nested Class Summary | |
---|---|
static class |
WinUser.KEYBDINPUT.ByReference
|
Nested classes/interfaces inherited from class com.sun.jna.Structure |
---|
Structure.ByValue, Structure.StructField |
Field Summary | |
---|---|
BaseTSD.ULONG_PTR |
dwExtraInfo
An additional value associated with the keystroke. |
WinDef.DWORD |
dwFlags
Specifies various aspects of a keystroke. |
static int |
KEYEVENTF_EXTENDEDKEY
If specified, the scan code was preceded by a prefix byte that has the value 0xE0 (224). |
static int |
KEYEVENTF_KEYUP
If specified, the key is being released. |
static int |
KEYEVENTF_SCANCODE
If specified, wScan identifies the key and wVk is ignored. |
static int |
KEYEVENTF_UNICODE
If specified, the system synthesizes a VK_PACKET keystroke. |
WinDef.DWORD |
time
The time stamp for the event, in milliseconds. |
WinDef.WORD |
wScan
A hardware scan code for the key. |
WinDef.WORD |
wVk
A virtual-key code. |
Fields inherited from class com.sun.jna.Structure |
---|
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE |
Constructor Summary | |
---|---|
WinUser.KEYBDINPUT()
|
|
WinUser.KEYBDINPUT(Pointer memory)
|
Method Summary | |
---|---|
protected List |
getFieldOrder()
Return this Structure's field names in their proper order. |
Methods inherited from class com.sun.jna.Structure |
---|
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, clear, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int KEYEVENTF_EXTENDEDKEY
public static final int KEYEVENTF_KEYUP
public static final int KEYEVENTF_UNICODE
public static final int KEYEVENTF_SCANCODE
public WinDef.WORD wVk
public WinDef.WORD wScan
public WinDef.DWORD dwFlags
public WinDef.DWORD time
public BaseTSD.ULONG_PTR dwExtraInfo
Constructor Detail |
---|
public WinUser.KEYBDINPUT()
public WinUser.KEYBDINPUT(Pointer memory)
Method Detail |
---|
protected List getFieldOrder()
Structure
protected List getFieldOrder() {
return Arrays.asList(new String[] { ... });
}
IMPORTANT
When deriving from an existing Structure subclass, ensure that
you augment the list provided by the superclass, e.g.
protected List getFieldOrder() {
List fields = new ArrayList(super.getFieldOrder());
fields.addAll(Arrays.asList(new String[] { ... }));
return fields;
}
Field order must be explicitly indicated, since the
field order as returned by Class.getFields()
is not
guaranteed to be predictable.
getFieldOrder
in class Structure
|
JNA API> 4.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |