public class TOUCHINPUT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
x – the x-coordinate (horizontal point) of the touch input. This member is indicated in hundredths of a pixel of physical screen coordinates.y – the y-coordinate (vertical point) of the touch input. This member is indicated in hundredths of a pixel of physical screen coordinates.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 –
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 –
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 –
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 in dwMask. This
field may contain a combination of the dwMask flags mentioned in the Remarks section.dwTime –
the time stamp for the event, in milliseconds. The consuming application should note that the system performs no validation on this field; when the
User32.TOUCHINPUTMASKF_TIMEFROMSYSTEM flag is not set, the accuracy and sequencing of values in this field are completely dependent on the touch input
provider.dwExtraInfo – an additional value associated with the touch event.cxContact –
the width of the touch contact area in hundredths of a pixel in physical screen coordinates. This value is only valid if the dwMask member has
the User32.TOUCHINPUTMASKF_CONTACTAREA flag set.cyContact –
the height of the touch contact area in hundredths of a pixel in physical screen coordinates. This value is only valid if the dwMask member has
the User32.TOUCHINPUTMASKF_CONTACTAREA flag set.
struct TOUCHINPUT {
LONG x;
LONG y;
HANDLE hSource;
DWORD dwID;
DWORD dwFlags;
DWORD dwMask;
DWORD dwTime;
ULONG_PTR dwExtraInfo;
DWORD cxContact;
DWORD cyContact;
}| Modifier and Type | Class and Description |
|---|---|
static class |
TOUCHINPUT.Buffer
An array of
TOUCHINPUT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CXCONTACT
The struct member offsets.
|
static int |
CYCONTACT
The struct member offsets.
|
static int |
DWEXTRAINFO
The struct member offsets.
|
static int |
DWFLAGS
The struct member offsets.
|
static int |
DWID
The struct member offsets.
|
static int |
DWMASK
The struct member offsets.
|
static int |
DWTIME
The struct member offsets.
|
static int |
HSOURCE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
X
The struct member offsets.
|
static int |
Y
The struct member offsets.
|
| Constructor and Description |
|---|
TOUCHINPUT(java.nio.ByteBuffer container)
Creates a
TOUCHINPUT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static TOUCHINPUT |
calloc()
Returns a new
TOUCHINPUT instance allocated with memCalloc. |
static TOUCHINPUT.Buffer |
calloc(int capacity)
Returns a new
TOUCHINPUT.Buffer instance allocated with memCalloc. |
static TOUCHINPUT |
callocStack()
Returns a new
TOUCHINPUT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static TOUCHINPUT.Buffer |
callocStack(int capacity)
Returns a new
TOUCHINPUT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static TOUCHINPUT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
TOUCHINPUT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static TOUCHINPUT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
TOUCHINPUT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static TOUCHINPUT |
create()
Returns a new
TOUCHINPUT instance allocated with BufferUtils. |
static TOUCHINPUT.Buffer |
create(int capacity)
Returns a new
TOUCHINPUT.Buffer instance allocated with BufferUtils. |
static TOUCHINPUT |
create(long address)
Returns a new
TOUCHINPUT instance for the specified memory address. |
static TOUCHINPUT.Buffer |
create(long address,
int capacity)
Create a
TOUCHINPUT.Buffer instance at the specified memory. |
static TOUCHINPUT |
createSafe(long address)
|
static TOUCHINPUT.Buffer |
createSafe(long address,
int capacity)
|
int |
cxContact()
Returns the value of the
cxContact field. |
int |
cyContact()
Returns the value of the
cyContact field. |
long |
dwExtraInfo()
Returns the value of the
dwExtraInfo field. |
int |
dwFlags()
Returns the value of the
dwFlags field. |
int |
dwID()
Returns the value of the
dwID field. |
int |
dwMask()
Returns the value of the
dwMask field. |
int |
dwTime()
Returns the value of the
dwTime field. |
long |
hSource()
Returns the value of the
hSource field. |
static TOUCHINPUT |
malloc()
Returns a new
TOUCHINPUT instance allocated with memAlloc. |
static TOUCHINPUT.Buffer |
malloc(int capacity)
Returns a new
TOUCHINPUT.Buffer instance allocated with memAlloc. |
static TOUCHINPUT |
mallocStack()
Returns a new
TOUCHINPUT instance allocated on the thread-local MemoryStack. |
static TOUCHINPUT.Buffer |
mallocStack(int capacity)
Returns a new
TOUCHINPUT.Buffer instance allocated on the thread-local MemoryStack. |
static TOUCHINPUT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
TOUCHINPUT.Buffer instance allocated on the specified MemoryStack. |
static TOUCHINPUT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
TOUCHINPUT instance allocated on the specified MemoryStack. |
static int |
ncxContact(long struct)
Unsafe version of
cxContact(). |
static int |
ncyContact(long struct)
Unsafe version of
cyContact(). |
static long |
ndwExtraInfo(long struct)
Unsafe version of
dwExtraInfo(). |
static int |
ndwFlags(long struct)
Unsafe version of
dwFlags(). |
static int |
ndwID(long struct)
Unsafe version of
dwID(). |
static int |
ndwMask(long struct)
Unsafe version of
dwMask(). |
static int |
ndwTime(long struct)
Unsafe version of
dwTime(). |
static long |
nhSource(long struct)
Unsafe version of
hSource(). |
static int |
nx(long struct)
Unsafe version of
x(). |
static int |
ny(long struct)
Unsafe version of
y(). |
int |
sizeof() |
int |
x()
Returns the value of the
x field. |
int |
y()
Returns the value of the
y field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int X
public static final int Y
public static final int HSOURCE
public static final int DWID
public static final int DWFLAGS
public static final int DWMASK
public static final int DWTIME
public static final int DWEXTRAINFO
public static final int CXCONTACT
public static final int CYCONTACT
public TOUCHINPUT(java.nio.ByteBuffer container)
TOUCHINPUT instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int x()
x field.public int y()
y field.public long hSource()
hSource field.public int dwID()
dwID field.public int dwFlags()
dwFlags field.public int dwMask()
dwMask field.public int dwTime()
dwTime field.public long dwExtraInfo()
dwExtraInfo field.public int cxContact()
cxContact field.public int cyContact()
cyContact field.public static TOUCHINPUT malloc()
TOUCHINPUT instance allocated with memAlloc. The instance must be explicitly freed.public static TOUCHINPUT calloc()
TOUCHINPUT instance allocated with memCalloc. The instance must be explicitly freed.public static TOUCHINPUT create()
TOUCHINPUT instance allocated with BufferUtils.public static TOUCHINPUT create(long address)
TOUCHINPUT instance for the specified memory address.@Nullable public static TOUCHINPUT createSafe(long address)
public static TOUCHINPUT.Buffer malloc(int capacity)
TOUCHINPUT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static TOUCHINPUT.Buffer calloc(int capacity)
TOUCHINPUT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static TOUCHINPUT.Buffer create(int capacity)
TOUCHINPUT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static TOUCHINPUT.Buffer create(long address, int capacity)
TOUCHINPUT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static TOUCHINPUT.Buffer createSafe(long address, int capacity)
public static TOUCHINPUT mallocStack()
TOUCHINPUT instance allocated on the thread-local MemoryStack.public static TOUCHINPUT callocStack()
TOUCHINPUT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static TOUCHINPUT mallocStack(org.lwjgl.system.MemoryStack stack)
TOUCHINPUT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static TOUCHINPUT callocStack(org.lwjgl.system.MemoryStack stack)
TOUCHINPUT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static TOUCHINPUT.Buffer mallocStack(int capacity)
TOUCHINPUT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static TOUCHINPUT.Buffer callocStack(int capacity)
TOUCHINPUT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static TOUCHINPUT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
TOUCHINPUT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static TOUCHINPUT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
TOUCHINPUT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nx(long struct)
x().public static int ny(long struct)
y().public static long nhSource(long struct)
hSource().public static int ndwID(long struct)
dwID().public static int ndwFlags(long struct)
dwFlags().public static int ndwMask(long struct)
dwMask().public static int ndwTime(long struct)
dwTime().public static long ndwExtraInfo(long struct)
dwExtraInfo().public static int ncxContact(long struct)
cxContact().public static int ncyContact(long struct)
cyContact().Copyright LWJGL. All Rights Reserved. License terms.