Package org.lwjgl.system.windows
Class INPUT.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<INPUT,INPUT.Buffer>
-
- org.lwjgl.system.windows.INPUT.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<INPUT>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- INPUT
public static class INPUT.Buffer extends org.lwjgl.system.StructBuffer<INPUT,INPUT.Buffer> implements org.lwjgl.system.NativeResource
An array ofINPUT
structs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newINPUT.Buffer
instance backed by the specified container. 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 byINPUT.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
type
public int type()
- Returns:
- the value of the
INPUT.type()
field.
-
DUMMYUNIONNAME_mi
public MOUSEINPUT DUMMYUNIONNAME_mi()
- Returns:
- a
MOUSEINPUT
view of theINPUT.DUMMYUNIONNAME_mi()
field.
-
DUMMYUNIONNAME_ki
public KEYBDINPUT DUMMYUNIONNAME_ki()
- Returns:
- a
KEYBDINPUT
view of theINPUT.DUMMYUNIONNAME_ki()
field.
-
DUMMYUNIONNAME_hi
public HARDWAREINPUT DUMMYUNIONNAME_hi()
- Returns:
- a
HARDWAREINPUT
view of theINPUT.DUMMYUNIONNAME_hi()
field.
-
type
public INPUT.Buffer type(int value)
Sets the specified value to theINPUT.type()
field.
-
DUMMYUNIONNAME_mi
public INPUT.Buffer DUMMYUNIONNAME_mi(MOUSEINPUT value)
Copies the specifiedMOUSEINPUT
to theINPUT.DUMMYUNIONNAME_mi()
field.
-
DUMMYUNIONNAME_mi
public INPUT.Buffer DUMMYUNIONNAME_mi(java.util.function.Consumer<MOUSEINPUT> consumer)
Passes theINPUT.DUMMYUNIONNAME_mi()
field to the specifiedConsumer
.
-
DUMMYUNIONNAME_ki
public INPUT.Buffer DUMMYUNIONNAME_ki(KEYBDINPUT value)
Copies the specifiedKEYBDINPUT
to theINPUT.DUMMYUNIONNAME_ki()
field.
-
DUMMYUNIONNAME_ki
public INPUT.Buffer DUMMYUNIONNAME_ki(java.util.function.Consumer<KEYBDINPUT> consumer)
Passes theINPUT.DUMMYUNIONNAME_ki()
field to the specifiedConsumer
.
-
DUMMYUNIONNAME_hi
public INPUT.Buffer DUMMYUNIONNAME_hi(HARDWAREINPUT value)
Copies the specifiedHARDWAREINPUT
to theINPUT.DUMMYUNIONNAME_hi()
field.
-
DUMMYUNIONNAME_hi
public INPUT.Buffer DUMMYUNIONNAME_hi(java.util.function.Consumer<HARDWAREINPUT> consumer)
Passes theINPUT.DUMMYUNIONNAME_hi()
field to the specifiedConsumer
.
-
-