Package org.lwjgl.system.windows
Class HARDWAREINPUT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.windows.HARDWAREINPUT
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class HARDWAREINPUT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HARDWAREINPUT.Buffer
An array ofHARDWAREINPUT
structs.
-
Constructor Summary
Constructors Constructor Description HARDWAREINPUT(java.nio.ByteBuffer container)
Creates aHARDWAREINPUT
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static HARDWAREINPUT
calloc()
Returns a newHARDWAREINPUT
instance allocated withmemCalloc
.static HARDWAREINPUT.Buffer
calloc(int capacity)
Returns a newHARDWAREINPUT.Buffer
instance allocated withmemCalloc
.static HARDWAREINPUT.Buffer
calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newHARDWAREINPUT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static HARDWAREINPUT
calloc(org.lwjgl.system.MemoryStack stack)
Returns a newHARDWAREINPUT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static HARDWAREINPUT
callocStack()
Deprecated.static HARDWAREINPUT.Buffer
callocStack(int capacity)
Deprecated.static HARDWAREINPUT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static HARDWAREINPUT
callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.static HARDWAREINPUT
create()
Returns a newHARDWAREINPUT
instance allocated withBufferUtils
.static HARDWAREINPUT.Buffer
create(int capacity)
Returns a newHARDWAREINPUT.Buffer
instance allocated withBufferUtils
.static HARDWAREINPUT
create(long address)
Returns a newHARDWAREINPUT
instance for the specified memory address.static HARDWAREINPUT.Buffer
create(long address, int capacity)
Create aHARDWAREINPUT.Buffer
instance at the specified memory.static HARDWAREINPUT
createSafe(long address)
static HARDWAREINPUT.Buffer
createSafe(long address, int capacity)
static HARDWAREINPUT
malloc()
Returns a newHARDWAREINPUT
instance allocated withmemAlloc
.static HARDWAREINPUT.Buffer
malloc(int capacity)
Returns a newHARDWAREINPUT.Buffer
instance allocated withmemAlloc
.static HARDWAREINPUT.Buffer
malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newHARDWAREINPUT.Buffer
instance allocated on the specifiedMemoryStack
.static HARDWAREINPUT
malloc(org.lwjgl.system.MemoryStack stack)
Returns a newHARDWAREINPUT
instance allocated on the specifiedMemoryStack
.static HARDWAREINPUT
mallocStack()
Deprecated.static HARDWAREINPUT.Buffer
mallocStack(int capacity)
Deprecated.static HARDWAREINPUT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static HARDWAREINPUT
mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.static int
nuMsg(long struct)
Unsafe version ofuMsg()
.static void
nuMsg(long struct, int value)
Unsafe version ofuMsg
.static short
nwParamH(long struct)
Unsafe version ofwParamH()
.static void
nwParamH(long struct, short value)
Unsafe version ofwParamH
.static short
nwParamL(long struct)
Unsafe version ofwParamL()
.static void
nwParamL(long struct, short value)
Unsafe version ofwParamL
.HARDWAREINPUT
set(int uMsg, short wParamL, short wParamH)
Initializes this struct with the specified values.HARDWAREINPUT
set(HARDWAREINPUT src)
Copies the specified struct data to this struct.int
sizeof()
int
uMsg()
the message generated by the input hardwareHARDWAREINPUT
uMsg(int value)
Sets the specified value to theuMsg()
field.short
wParamH()
the high-order word of thelParam
parameter foruMsg
HARDWAREINPUT
wParamH(short value)
Sets the specified value to thewParamH()
field.short
wParamL()
the low-order word of thelParam
parameter foruMsg
HARDWAREINPUT
wParamL(short value)
Sets the specified value to thewParamL()
field.
-
-
-
Constructor Detail
-
HARDWAREINPUT
public HARDWAREINPUT(java.nio.ByteBuffer container)
Creates aHARDWAREINPUT
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
uMsg
public int uMsg()
the message generated by the input hardware
-
wParamL
public short wParamL()
the low-order word of thelParam
parameter foruMsg
-
wParamH
public short wParamH()
the high-order word of thelParam
parameter foruMsg
-
uMsg
public HARDWAREINPUT uMsg(int value)
Sets the specified value to theuMsg()
field.
-
wParamL
public HARDWAREINPUT wParamL(short value)
Sets the specified value to thewParamL()
field.
-
wParamH
public HARDWAREINPUT wParamH(short value)
Sets the specified value to thewParamH()
field.
-
set
public HARDWAREINPUT set(int uMsg, short wParamL, short wParamH)
Initializes this struct with the specified values.
-
set
public HARDWAREINPUT set(HARDWAREINPUT src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static HARDWAREINPUT malloc()
Returns a newHARDWAREINPUT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static HARDWAREINPUT calloc()
Returns a newHARDWAREINPUT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static HARDWAREINPUT create()
Returns a newHARDWAREINPUT
instance allocated withBufferUtils
.
-
create
public static HARDWAREINPUT create(long address)
Returns a newHARDWAREINPUT
instance for the specified memory address.
-
createSafe
@Nullable public static HARDWAREINPUT createSafe(long address)
-
malloc
public static HARDWAREINPUT.Buffer malloc(int capacity)
Returns a newHARDWAREINPUT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static HARDWAREINPUT.Buffer calloc(int capacity)
Returns a newHARDWAREINPUT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static HARDWAREINPUT.Buffer create(int capacity)
Returns a newHARDWAREINPUT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static HARDWAREINPUT.Buffer create(long address, int capacity)
Create aHARDWAREINPUT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static HARDWAREINPUT.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static HARDWAREINPUT mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static HARDWAREINPUT callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static HARDWAREINPUT mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static HARDWAREINPUT callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static HARDWAREINPUT.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead.
-
callocStack
@Deprecated public static HARDWAREINPUT.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead.
-
mallocStack
@Deprecated public static HARDWAREINPUT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead.
-
callocStack
@Deprecated public static HARDWAREINPUT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead.
-
malloc
public static HARDWAREINPUT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newHARDWAREINPUT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static HARDWAREINPUT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newHARDWAREINPUT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static HARDWAREINPUT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newHARDWAREINPUT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
calloc
public static HARDWAREINPUT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newHARDWAREINPUT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nuMsg
public static int nuMsg(long struct)
Unsafe version ofuMsg()
.
-
nwParamL
public static short nwParamL(long struct)
Unsafe version ofwParamL()
.
-
nwParamH
public static short nwParamH(long struct)
Unsafe version ofwParamH()
.
-
nuMsg
public static void nuMsg(long struct, int value)
Unsafe version ofuMsg
.
-
nwParamL
public static void nwParamL(long struct, short value)
Unsafe version ofwParamL
.
-
nwParamH
public static void nwParamH(long struct, short value)
Unsafe version ofwParamH
.
-
-