Package org.lwjgl.system.windows
Class TOUCHINPUT
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Encapsulates data for touch input.
Layout
struct TOUCHINPUT {
LONG x()
;
LONG y()
;
HANDLE hSource()
;
DWORD dwID()
;
DWORD dwFlags()
;
DWORD dwMask()
;
DWORD dwTime()
;
ULONG_PTR dwExtraInfo()
;
DWORD cxContact()
;
DWORD cyContact()
;
}
-
Nested Class Summary
Nested 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
Modifier 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 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.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
ConstructorDescriptionTOUCHINPUT
(ByteBuffer container) Creates aTOUCHINPUT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic TOUCHINPUT
calloc()
Returns a newTOUCHINPUT
instance allocated withmemCalloc
.static TOUCHINPUT.Buffer
calloc
(int capacity) Returns a newTOUCHINPUT.Buffer
instance allocated withmemCalloc
.static TOUCHINPUT.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newTOUCHINPUT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static TOUCHINPUT
calloc
(MemoryStack stack) Returns a newTOUCHINPUT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static TOUCHINPUT
Deprecated.static TOUCHINPUT.Buffer
callocStack
(int capacity) Deprecated.static TOUCHINPUT.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static TOUCHINPUT
callocStack
(MemoryStack stack) Deprecated.static TOUCHINPUT
create()
Returns a newTOUCHINPUT
instance allocated withBufferUtils
.static TOUCHINPUT.Buffer
create
(int capacity) Returns a newTOUCHINPUT.Buffer
instance allocated withBufferUtils
.static TOUCHINPUT
create
(long address) Returns a newTOUCHINPUT
instance for the specified memory address.static TOUCHINPUT.Buffer
create
(long address, int capacity) Create aTOUCHINPUT.Buffer
instance at the specified memory.static TOUCHINPUT
createSafe
(long address) static TOUCHINPUT.Buffer
createSafe
(long address, int capacity) int
the width of the touch contact area in hundredths of a pixel in physical screen coordinates.int
the height of the touch contact area in hundredths of a pixel in physical screen coordinates.long
an additional value associated with the touch event.int
dwFlags()
a set of bit flags that specify various aspects of touch point press, release, and motion.int
dwID()
a touch point identifier that distinguishes a particular touch input.int
dwMask()
a set of bit flags that specify which of the optional fields in the structure contain valid values.int
dwTime()
the time stamp for the event, in milliseconds.long
hSource()
a device handle for the source input device.static TOUCHINPUT
malloc()
Returns a newTOUCHINPUT
instance allocated withmemAlloc
.static TOUCHINPUT.Buffer
malloc
(int capacity) Returns a newTOUCHINPUT.Buffer
instance allocated withmemAlloc
.static TOUCHINPUT.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newTOUCHINPUT.Buffer
instance allocated on the specifiedMemoryStack
.static TOUCHINPUT
malloc
(MemoryStack stack) Returns a newTOUCHINPUT
instance allocated on the specifiedMemoryStack
.static TOUCHINPUT
Deprecated.static TOUCHINPUT.Buffer
mallocStack
(int capacity) Deprecated.static TOUCHINPUT.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static TOUCHINPUT
mallocStack
(MemoryStack stack) Deprecated.static int
ncxContact
(long struct) Unsafe version ofcxContact()
.static int
ncyContact
(long struct) Unsafe version ofcyContact()
.static long
ndwExtraInfo
(long struct) Unsafe version ofdwExtraInfo()
.static int
ndwFlags
(long struct) Unsafe version ofdwFlags()
.static int
ndwID
(long struct) Unsafe version ofdwID()
.static int
ndwMask
(long struct) Unsafe version ofdwMask()
.static int
ndwTime
(long struct) Unsafe version ofdwTime()
.static long
nhSource
(long struct) Unsafe version ofhSource()
.static int
nx
(long struct) Unsafe version ofx()
.static int
ny
(long struct) Unsafe version ofy()
.int
sizeof()
Returnssizeof(struct)
.int
x()
the x-coordinate (horizontal point) of the touch input.int
y()
the y-coordinate (vertical point) of the touch input.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. -
X
public static final int XThe struct member offsets. -
Y
public static final int YThe struct member offsets. -
HSOURCE
public static final int HSOURCEThe struct member offsets. -
DWID
public static final int DWIDThe struct member offsets. -
DWFLAGS
public static final int DWFLAGSThe struct member offsets. -
DWMASK
public static final int DWMASKThe struct member offsets. -
DWTIME
public static final int DWTIMEThe struct member offsets. -
DWEXTRAINFO
public static final int DWEXTRAINFOThe struct member offsets. -
CXCONTACT
public static final int CXCONTACTThe struct member offsets. -
CYCONTACT
public static final int CYCONTACTThe struct member offsets.
-
-
Constructor Details
-
TOUCHINPUT
Creates aTOUCHINPUT
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<TOUCHINPUT>
-
x
public int x()the x-coordinate (horizontal point) of the touch input. This member is indicated in hundredths of a pixel of physical screen coordinates. -
y
public int y()the y-coordinate (vertical point) of the touch input. This member is indicated in hundredths of a pixel of physical screen coordinates. -
hSource
public long hSource()a device handle for the source input device. Each device is given a unique provider at run time by the touch input provider. -
dwID
public int dwID()a touch point identifier that distinguishes a particular touch input. This value stays consistent in a touch contact sequence from the point a contact comes down until it comes back up. An ID may be reused later for subsequent contacts. -
dwFlags
public int dwFlags()a set of bit flags that specify various aspects of touch point press, release, and motion. The bits in this member can be any reasonable combination of the values in the Remarks section. -
dwMask
public int dwMask()a set of bit flags that specify which of the optional fields in the structure contain valid values. The availability of valid information in the optional fields is device-specific. Applications should use an optional field value only when the corresponding bit is set indwMask
. This field may contain a combination of thedwMask
flags mentioned in the Remarks section. -
dwTime
public int dwTime()the time stamp for the event, in milliseconds. The consuming application should note that the system performs no validation on this field; when theUser32.TOUCHINPUTMASKF_TIMEFROMSYSTEM
flag is not set, the accuracy and sequencing of values in this field are completely dependent on the touch input provider. -
dwExtraInfo
public long dwExtraInfo()an additional value associated with the touch event. -
cxContact
public int cxContact()the width of the touch contact area in hundredths of a pixel in physical screen coordinates. This value is only valid if thedwMask
member has theUser32.TOUCHINPUTMASKF_CONTACTAREA
flag set. -
cyContact
public int cyContact()the height of the touch contact area in hundredths of a pixel in physical screen coordinates. This value is only valid if thedwMask
member has theUser32.TOUCHINPUTMASKF_CONTACTAREA
flag set. -
malloc
Returns a newTOUCHINPUT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newTOUCHINPUT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newTOUCHINPUT
instance allocated withBufferUtils
. -
create
Returns a newTOUCHINPUT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newTOUCHINPUT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newTOUCHINPUT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newTOUCHINPUT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aTOUCHINPUT.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 newTOUCHINPUT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newTOUCHINPUT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newTOUCHINPUT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newTOUCHINPUT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nx
public static int nx(long struct) Unsafe version ofx()
. -
ny
public static int ny(long struct) Unsafe version ofy()
. -
nhSource
public static long nhSource(long struct) Unsafe version ofhSource()
. -
ndwID
public static int ndwID(long struct) Unsafe version ofdwID()
. -
ndwFlags
public static int ndwFlags(long struct) Unsafe version ofdwFlags()
. -
ndwMask
public static int ndwMask(long struct) Unsafe version ofdwMask()
. -
ndwTime
public static int ndwTime(long struct) Unsafe version ofdwTime()
. -
ndwExtraInfo
public static long ndwExtraInfo(long struct) Unsafe version ofdwExtraInfo()
. -
ncxContact
public static int ncxContact(long struct) Unsafe version ofcxContact()
. -
ncyContact
public static int ncyContact(long struct) Unsafe version ofcyContact()
.
-