Package org.lwjgl.system.windows
Class MOUSEINPUT
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct MOUSEINPUT {
LONG dx;
LONG dy;
DWORD mouseData;
DWORD dwFlags;
DWORD time;
ULONG_PTR dwExtraInfo;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionMOUSEINPUT
(ByteBuffer container) Creates aMOUSEINPUT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic MOUSEINPUT
calloc()
Returns a newMOUSEINPUT
instance allocated withmemCalloc
.static MOUSEINPUT.Buffer
calloc
(int capacity) Returns a newMOUSEINPUT.Buffer
instance allocated withmemCalloc
.static MOUSEINPUT.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newMOUSEINPUT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static MOUSEINPUT
calloc
(MemoryStack stack) Returns a newMOUSEINPUT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static MOUSEINPUT
Deprecated.static MOUSEINPUT.Buffer
callocStack
(int capacity) Deprecated.static MOUSEINPUT.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static MOUSEINPUT
callocStack
(MemoryStack stack) Deprecated.static MOUSEINPUT
create()
Returns a newMOUSEINPUT
instance allocated withBufferUtils
.static MOUSEINPUT.Buffer
create
(int capacity) Returns a newMOUSEINPUT.Buffer
instance allocated withBufferUtils
.static MOUSEINPUT
create
(long address) Returns a newMOUSEINPUT
instance for the specified memory address.static MOUSEINPUT.Buffer
create
(long address, int capacity) Create aMOUSEINPUT.Buffer
instance at the specified memory.static @Nullable MOUSEINPUT
createSafe
(long address) static @Nullable MOUSEINPUT.Buffer
createSafe
(long address, int capacity) long
dwExtraInfo
(long value) Sets the specified value to thedwExtraInfo
field.int
dwFlags()
dwFlags
(int value) Sets the specified value to thedwFlags
field.int
dx()
dx
(int value) Sets the specified value to thedx
field.int
dy()
dy
(int value) Sets the specified value to thedy
field.static MOUSEINPUT
malloc()
Returns a newMOUSEINPUT
instance allocated withmemAlloc
.static MOUSEINPUT.Buffer
malloc
(int capacity) Returns a newMOUSEINPUT.Buffer
instance allocated withmemAlloc
.static MOUSEINPUT.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newMOUSEINPUT.Buffer
instance allocated on the specifiedMemoryStack
.static MOUSEINPUT
malloc
(MemoryStack stack) Returns a newMOUSEINPUT
instance allocated on the specifiedMemoryStack
.static MOUSEINPUT
Deprecated.static MOUSEINPUT.Buffer
mallocStack
(int capacity) Deprecated.static MOUSEINPUT.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static MOUSEINPUT
mallocStack
(MemoryStack stack) Deprecated.int
mouseData
(int value) Sets the specified value to themouseData
field.static long
ndwExtraInfo
(long struct) Unsafe version ofdwExtraInfo()
.static void
ndwExtraInfo
(long struct, long value) Unsafe version ofdwExtraInfo
.static int
ndwFlags
(long struct) Unsafe version ofdwFlags()
.static void
ndwFlags
(long struct, int value) Unsafe version ofdwFlags
.static int
ndx
(long struct) Unsafe version ofdx()
.static void
ndx
(long struct, int value) Unsafe version ofdx
.static int
ndy
(long struct) Unsafe version ofdy()
.static void
ndy
(long struct, int value) Unsafe version ofdy
.static int
nmouseData
(long struct) Unsafe version ofmouseData()
.static void
nmouseData
(long struct, int value) Unsafe version ofmouseData
.static int
ntime
(long struct) Unsafe version oftime()
.static void
ntime
(long struct, int value) Unsafe version oftime
.set
(int dx, int dy, int mouseData, int dwFlags, int time, long dwExtraInfo) Initializes this struct with the specified values.set
(MOUSEINPUT src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
time()
time
(int value) Sets the specified value to thetime
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
DX
public static final int DXThe struct member offsets. -
DY
public static final int DYThe struct member offsets. -
MOUSEDATA
public static final int MOUSEDATAThe 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
-
MOUSEINPUT
Creates aMOUSEINPUT
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<MOUSEINPUT>
-
dx
public int dx()- Returns:
- the value of the
dx
field.
-
dy
public int dy()- Returns:
- the value of the
dy
field.
-
mouseData
public int mouseData()- Returns:
- the value of the
mouseData
field.
-
dwFlags
public int dwFlags()- Returns:
- the value of the
dwFlags
field.
-
time
public int time()- Returns:
- the value of the
time
field.
-
dwExtraInfo
public long dwExtraInfo()- Returns:
- the value of the
dwExtraInfo
field.
-
dx
Sets the specified value to thedx
field. -
dy
Sets the specified value to thedy
field. -
mouseData
Sets the specified value to themouseData
field. -
dwFlags
Sets the specified value to thedwFlags
field. -
time
Sets the specified value to thetime
field. -
dwExtraInfo
Sets the specified value to thedwExtraInfo
field. -
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 newMOUSEINPUT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newMOUSEINPUT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newMOUSEINPUT
instance allocated withBufferUtils
. -
create
Returns a newMOUSEINPUT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newMOUSEINPUT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newMOUSEINPUT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newMOUSEINPUT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aMOUSEINPUT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newMOUSEINPUT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newMOUSEINPUT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newMOUSEINPUT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newMOUSEINPUT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ndx
public static int ndx(long struct) Unsafe version ofdx()
. -
ndy
public static int ndy(long struct) Unsafe version ofdy()
. -
nmouseData
public static int nmouseData(long struct) Unsafe version ofmouseData()
. -
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()
. -
ndx
public static void ndx(long struct, int value) Unsafe version ofdx
. -
ndy
public static void ndy(long struct, int value) Unsafe version ofdy
. -
nmouseData
public static void nmouseData(long struct, int value) Unsafe version ofmouseData
. -
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
.
-