Package org.lwjgl.system.windows
Class KEYBDINPUT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct KEYBDINPUT {
WORD wVk;
WORD wScan;
DWORD dwFlags;
DWORD time;
ULONG_PTR dwExtraInfo;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionKEYBDINPUT(ByteBuffer container) Creates aKEYBDINPUTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic KEYBDINPUTcalloc()Returns a newKEYBDINPUTinstance allocated withmemCalloc.static KEYBDINPUT.Buffercalloc(int capacity) Returns a newKEYBDINPUT.Bufferinstance allocated withmemCalloc.static KEYBDINPUT.Buffercalloc(int capacity, MemoryStack stack) Returns a newKEYBDINPUT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static KEYBDINPUTcalloc(MemoryStack stack) Returns a newKEYBDINPUTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static KEYBDINPUTcreate()Returns a newKEYBDINPUTinstance allocated withBufferUtils.static KEYBDINPUT.Buffercreate(int capacity) Returns a newKEYBDINPUT.Bufferinstance allocated withBufferUtils.static KEYBDINPUTcreate(long address) Returns a newKEYBDINPUTinstance for the specified memory address.static KEYBDINPUT.Buffercreate(long address, int capacity) Create aKEYBDINPUT.Bufferinstance at the specified memory.static @Nullable KEYBDINPUTcreateSafe(long address) static @Nullable KEYBDINPUT.BuffercreateSafe(long address, int capacity) longdwExtraInfo(long value) Sets the specified value to thedwExtraInfofield.intdwFlags()dwFlags(int value) Sets the specified value to thedwFlagsfield.static KEYBDINPUTmalloc()Returns a newKEYBDINPUTinstance allocated withmemAlloc.static KEYBDINPUT.Buffermalloc(int capacity) Returns a newKEYBDINPUT.Bufferinstance allocated withmemAlloc.static KEYBDINPUT.Buffermalloc(int capacity, MemoryStack stack) Returns a newKEYBDINPUT.Bufferinstance allocated on the specifiedMemoryStack.static KEYBDINPUTmalloc(MemoryStack stack) Returns a newKEYBDINPUTinstance allocated on the specifiedMemoryStack.static longndwExtraInfo(long struct) Unsafe version ofdwExtraInfo().static voidndwExtraInfo(long struct, long value) Unsafe version ofdwExtraInfo.static intndwFlags(long struct) Unsafe version ofdwFlags().static voidndwFlags(long struct, int value) Unsafe version ofdwFlags.static intntime(long struct) Unsafe version oftime().static voidntime(long struct, int value) Unsafe version oftime.static shortnwScan(long struct) Unsafe version ofwScan().static voidnwScan(long struct, short value) Unsafe version ofwScan.static shortnwVk(long struct) Unsafe version ofwVk().static voidnwVk(long struct, short value) Unsafe version ofwVk.set(short wVk, short wScan, int dwFlags, int time, long dwExtraInfo) Initializes this struct with the specified values.set(KEYBDINPUT src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttime()time(int value) Sets the specified value to thetimefield.shortwScan()wScan(short value) Sets the specified value to thewScanfield.shortwVk()wVk(short value) Sets the specified value to thewVkfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
WVK
public static final int WVKThe struct member offsets. -
WSCAN
public static final int WSCANThe struct member offsets. -
DWFLAGS
public static final int DWFLAGSThe struct member offsets. -
TIME
public static final int TIMEThe struct member offsets. -
DWEXTRAINFO
public static final int DWEXTRAINFOThe struct member offsets.
-
-
Constructor Details
-
KEYBDINPUT
Creates aKEYBDINPUTinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<KEYBDINPUT>
-
wVk
public short wVk()- Returns:
- the value of the
wVkfield.
-
wScan
public short wScan()- Returns:
- the value of the
wScanfield.
-
dwFlags
public int dwFlags()- Returns:
- the value of the
dwFlagsfield.
-
time
public int time()- Returns:
- the value of the
timefield.
-
dwExtraInfo
public long dwExtraInfo()- Returns:
- the value of the
dwExtraInfofield.
-
wVk
Sets the specified value to thewVkfield. -
wScan
Sets the specified value to thewScanfield. -
dwFlags
Sets the specified value to thedwFlagsfield. -
time
Sets the specified value to thetimefield. -
dwExtraInfo
Sets the specified value to thedwExtraInfofield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newKEYBDINPUTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newKEYBDINPUTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newKEYBDINPUTinstance allocated withBufferUtils. -
create
Returns a newKEYBDINPUTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newKEYBDINPUT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newKEYBDINPUT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newKEYBDINPUT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aKEYBDINPUT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newKEYBDINPUTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newKEYBDINPUTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newKEYBDINPUT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newKEYBDINPUT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nwVk
public static short nwVk(long struct) Unsafe version ofwVk(). -
nwScan
public static short nwScan(long struct) Unsafe version ofwScan(). -
ndwFlags
public static int ndwFlags(long struct) Unsafe version ofdwFlags(). -
ntime
public static int ntime(long struct) Unsafe version oftime(). -
ndwExtraInfo
public static long ndwExtraInfo(long struct) Unsafe version ofdwExtraInfo(). -
nwVk
public static void nwVk(long struct, short value) Unsafe version ofwVk. -
nwScan
public static void nwScan(long struct, short value) Unsafe version ofwScan. -
ndwFlags
public static void ndwFlags(long struct, int value) Unsafe version ofdwFlags. -
ntime
public static void ntime(long struct, int value) Unsafe version oftime. -
ndwExtraInfo
public static void ndwExtraInfo(long struct, long value) Unsafe version ofdwExtraInfo.
-