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 classHARDWAREINPUT.BufferAn array ofHARDWAREINPUTstructs.
-
Constructor Summary
Constructors Constructor Description HARDWAREINPUT(java.nio.ByteBuffer container)Creates aHARDWAREINPUTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static HARDWAREINPUTcalloc()Returns a newHARDWAREINPUTinstance allocated withmemCalloc.static HARDWAREINPUT.Buffercalloc(int capacity)Returns a newHARDWAREINPUT.Bufferinstance allocated withmemCalloc.static HARDWAREINPUT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newHARDWAREINPUT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static HARDWAREINPUTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newHARDWAREINPUTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static HARDWAREINPUTcallocStack()Deprecated.static HARDWAREINPUT.BuffercallocStack(int capacity)Deprecated.static HARDWAREINPUT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static HARDWAREINPUTcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static HARDWAREINPUTcreate()Returns a newHARDWAREINPUTinstance allocated withBufferUtils.static HARDWAREINPUT.Buffercreate(int capacity)Returns a newHARDWAREINPUT.Bufferinstance allocated withBufferUtils.static HARDWAREINPUTcreate(long address)Returns a newHARDWAREINPUTinstance for the specified memory address.static HARDWAREINPUT.Buffercreate(long address, int capacity)Create aHARDWAREINPUT.Bufferinstance at the specified memory.static HARDWAREINPUTcreateSafe(long address)static HARDWAREINPUT.BuffercreateSafe(long address, int capacity)static HARDWAREINPUTmalloc()Returns a newHARDWAREINPUTinstance allocated withmemAlloc.static HARDWAREINPUT.Buffermalloc(int capacity)Returns a newHARDWAREINPUT.Bufferinstance allocated withmemAlloc.static HARDWAREINPUT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newHARDWAREINPUT.Bufferinstance allocated on the specifiedMemoryStack.static HARDWAREINPUTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newHARDWAREINPUTinstance allocated on the specifiedMemoryStack.static HARDWAREINPUTmallocStack()Deprecated.static HARDWAREINPUT.BuffermallocStack(int capacity)Deprecated.static HARDWAREINPUT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static HARDWAREINPUTmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnuMsg(long struct)Unsafe version ofuMsg().static voidnuMsg(long struct, int value)Unsafe version ofuMsg.static shortnwParamH(long struct)Unsafe version ofwParamH().static voidnwParamH(long struct, short value)Unsafe version ofwParamH.static shortnwParamL(long struct)Unsafe version ofwParamL().static voidnwParamL(long struct, short value)Unsafe version ofwParamL.HARDWAREINPUTset(int uMsg, short wParamL, short wParamH)Initializes this struct with the specified values.HARDWAREINPUTset(HARDWAREINPUT src)Copies the specified struct data to this struct.intsizeof()intuMsg()the message generated by the input hardwareHARDWAREINPUTuMsg(int value)Sets the specified value to theuMsg()field.shortwParamH()the high-order word of thelParamparameter foruMsgHARDWAREINPUTwParamH(short value)Sets the specified value to thewParamH()field.shortwParamL()the low-order word of thelParamparameter foruMsgHARDWAREINPUTwParamL(short value)Sets the specified value to thewParamL()field.
-
-
-
Constructor Detail
-
HARDWAREINPUT
public HARDWAREINPUT(java.nio.ByteBuffer container)
Creates aHARDWAREINPUTinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
uMsg
public int uMsg()
the message generated by the input hardware
-
wParamL
public short wParamL()
the low-order word of thelParamparameter foruMsg
-
wParamH
public short wParamH()
the high-order word of thelParamparameter 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 newHARDWAREINPUTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static HARDWAREINPUT calloc()
Returns a newHARDWAREINPUTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static HARDWAREINPUT create()
Returns a newHARDWAREINPUTinstance allocated withBufferUtils.
-
create
public static HARDWAREINPUT create(long address)
Returns a newHARDWAREINPUTinstance for the specified memory address.
-
createSafe
@Nullable public static HARDWAREINPUT createSafe(long address)
-
malloc
public static HARDWAREINPUT.Buffer malloc(int capacity)
Returns a newHARDWAREINPUT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static HARDWAREINPUT.Buffer calloc(int capacity)
Returns a newHARDWAREINPUT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static HARDWAREINPUT.Buffer create(int capacity)
Returns a newHARDWAREINPUT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static HARDWAREINPUT.Buffer create(long address, int capacity)
Create aHARDWAREINPUT.Bufferinstance 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 newHARDWAREINPUTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static HARDWAREINPUT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newHARDWAREINPUTinstance allocated on the specifiedMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-