Top Description Inners Fields Constructors Methods
org.lwjgl.system.windows

public Class TOUCHINPUT

extends Struct<TOUCHINPUT>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

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 and Inner Type Summary

Modifier and TypeClass and Description
public static class
TOUCHINPUT.Buffer

An array of TOUCHINPUT structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
CXCONTACT

The struct member offsets.

public static final int
CYCONTACT

The struct member offsets.

public static final int
DWEXTRAINFO

The struct member offsets.

public static final int
DWFLAGS

The struct member offsets.

public static final int
DWID

The struct member offsets.

public static final int
DWMASK

The struct member offsets.

public static final int
DWTIME

The struct member offsets.

public static final int
HSOURCE

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
X

The struct member offsets.

public static final int
Y

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
TOUCHINPUT(long address, ByteBuffer container)

public
TOUCHINPUT(ByteBuffer container)

Creates a TOUCHINPUT instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static TOUCHINPUT
calloc()

Returns a new TOUCHINPUT instance allocated with memCalloc.

public static TOUCHINPUT.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new TOUCHINPUT.Buffer instance allocated with memCalloc.

public static TOUCHINPUT
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new TOUCHINPUT instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static TOUCHINPUT.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new TOUCHINPUT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static TOUCHINPUT
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static TOUCHINPUT
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static TOUCHINPUT.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static TOUCHINPUT.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected TOUCHINPUT
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static TOUCHINPUT
create()

Returns a new TOUCHINPUT instance allocated with BufferUtils.

public static TOUCHINPUT
create(long address)

Returns a new TOUCHINPUT instance for the specified memory address.

public static TOUCHINPUT.Buffer
create(int
the buffer capacity
capacity
)

Returns a new TOUCHINPUT.Buffer instance allocated with BufferUtils.

public static TOUCHINPUT.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a TOUCHINPUT.Buffer instance at the specified memory.

public static TOUCHINPUT
createSafe(long address)

Like create, but returns null if address is NULL.

public static TOUCHINPUT.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
cxContact()

the width of the touch contact area in hundredths of a pixel in physical screen coordinates.

public int
cyContact()

the height of the touch contact area in hundredths of a pixel in physical screen coordinates.

public long
dwExtraInfo()

an additional value associated with the touch event.

public int
dwFlags()

a set of bit flags that specify various aspects of touch point press, release, and motion.

public int
dwID()

a touch point identifier that distinguishes a particular touch input.

public int
dwMask()

a set of bit flags that specify which of the optional fields in the structure contain valid values.

public int
dwTime()

the time stamp for the event, in milliseconds.

public long
hSource()

a device handle for the source input device.

public static TOUCHINPUT
malloc()

Returns a new TOUCHINPUT instance allocated with memAlloc.

public static TOUCHINPUT.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new TOUCHINPUT.Buffer instance allocated with memAlloc.

public static TOUCHINPUT
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new TOUCHINPUT instance allocated on the specified MemoryStack.

public static TOUCHINPUT.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new TOUCHINPUT.Buffer instance allocated on the specified MemoryStack.

public static TOUCHINPUT
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static TOUCHINPUT
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static TOUCHINPUT.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static TOUCHINPUT.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static int
ncxContact(long struct)

Unsafe version of cxContact.

public static int
ncyContact(long struct)

Unsafe version of cyContact.

public static long
ndwExtraInfo(long struct)

Unsafe version of dwExtraInfo.

public static int
ndwFlags(long struct)

Unsafe version of dwFlags.

public static int
ndwID(long struct)

Unsafe version of dwID.

public static int
ndwMask(long struct)

Unsafe version of dwMask.

public static int
ndwTime(long struct)

Unsafe version of dwTime.

public static long
nhSource(long struct)

Unsafe version of hSource.

public static int
nx(long struct)

Unsafe version of x.

public static int
ny(long struct)

Unsafe version of y.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
x()

the x-coordinate (horizontal point) of the touch input.

public int
y()

the y-coordinate (vertical point) of the touch input.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

CXCONTACTback to summary
public static final int CXCONTACT

The struct member offsets.

CYCONTACTback to summary
public static final int CYCONTACT

The struct member offsets.

DWEXTRAINFOback to summary
public static final int DWEXTRAINFO

The struct member offsets.

DWFLAGSback to summary
public static final int DWFLAGS

The struct member offsets.

DWIDback to summary
public static final int DWID

The struct member offsets.

DWMASKback to summary
public static final int DWMASK

The struct member offsets.

DWTIMEback to summary
public static final int DWTIME

The struct member offsets.

HSOURCEback to summary
public static final int HSOURCE

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

Xback to summary
public static final int X

The struct member offsets.

Yback to summary
public static final int Y

The struct member offsets.

Constructor Detail

TOUCHINPUTback to summary
protected TOUCHINPUT(long address, ByteBuffer container)
TOUCHINPUTback to summary
public TOUCHINPUT(ByteBuffer container)

Creates a 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.

Method Detail

callocback to summary
public static TOUCHINPUT calloc()

Returns a new TOUCHINPUT instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static TOUCHINPUT.Buffer calloc(int capacity)

Returns a new TOUCHINPUT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static TOUCHINPUT calloc(MemoryStack stack)

Returns a new TOUCHINPUT instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static TOUCHINPUT.Buffer calloc(int capacity, MemoryStack stack)

Returns a new TOUCHINPUT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

callocStackback to summary
public static TOUCHINPUT callocStack()

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static TOUCHINPUT callocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static TOUCHINPUT.Buffer callocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static TOUCHINPUT.Buffer callocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
createback to summary
protected TOUCHINPUT create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static TOUCHINPUT create()

Returns a new TOUCHINPUT instance allocated with BufferUtils.

createback to summary
public static TOUCHINPUT create(long address)

Returns a new TOUCHINPUT instance for the specified memory address.

createback to summary
public static TOUCHINPUT.Buffer create(int capacity)

Returns a new TOUCHINPUT.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static TOUCHINPUT.Buffer create(long address, int capacity)

Create a TOUCHINPUT.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static TOUCHINPUT createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static TOUCHINPUT.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
cxContactback to summary
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 the dwMask member has the User32#TOUCHINPUTMASKF_CONTACTAREA flag set.

Annotations
@NativeType:DWORD
cyContactback to summary
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 the dwMask member has the User32#TOUCHINPUTMASKF_CONTACTAREA flag set.

Annotations
@NativeType:DWORD
dwExtraInfoback to summary
public long dwExtraInfo()

an additional value associated with the touch event.

Annotations
@NativeType:ULONG_PTR
dwFlagsback to summary
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.

Annotations
@NativeType:DWORD
dwIDback to summary
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.

Annotations
@NativeType:DWORD
dwMaskback to summary
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 in dwMask. This field may contain a combination of the dwMask flags mentioned in the Remarks section.

Annotations
@NativeType:DWORD
dwTimeback to summary
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 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.

Annotations
@NativeType:DWORD
hSourceback to summary
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.

Annotations
@NativeType:HANDLE
mallocback to summary
public static TOUCHINPUT malloc()

Returns a new TOUCHINPUT instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static TOUCHINPUT.Buffer malloc(int capacity)

Returns a new TOUCHINPUT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static TOUCHINPUT malloc(MemoryStack stack)

Returns a new TOUCHINPUT instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static TOUCHINPUT.Buffer malloc(int capacity, MemoryStack stack)

Returns a new TOUCHINPUT.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

mallocStackback to summary
public static TOUCHINPUT mallocStack()

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static TOUCHINPUT mallocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static TOUCHINPUT.Buffer mallocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static TOUCHINPUT.Buffer mallocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
ncxContactback to summary
public static int ncxContact(long struct)

Unsafe version of cxContact.

ncyContactback to summary
public static int ncyContact(long struct)

Unsafe version of cyContact.

ndwExtraInfoback to summary
public static long ndwExtraInfo(long struct)

Unsafe version of dwExtraInfo.

ndwFlagsback to summary
public static int ndwFlags(long struct)

Unsafe version of dwFlags.

ndwIDback to summary
public static int ndwID(long struct)

Unsafe version of dwID.

ndwMaskback to summary
public static int ndwMask(long struct)

Unsafe version of dwMask.

ndwTimeback to summary
public static int ndwTime(long struct)

Unsafe version of dwTime.

nhSourceback to summary
public static long nhSource(long struct)

Unsafe version of hSource.

nxback to summary
public static int nx(long struct)

Unsafe version of x.

nyback to summary
public static int ny(long struct)

Unsafe version of y.

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
xback to summary
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.

Annotations
@NativeType:LONG
yback to summary
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.

Annotations
@NativeType:LONG
org.lwjgl.system.windows back to summary

public Class TOUCHINPUT.Buffer

extends StructBuffer<TOUCHINPUT, TOUCHINPUT.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of TOUCHINPUT structs.

Field Summary

Modifier and TypeField and Description
private static final TOUCHINPUT

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new TOUCHINPUT.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the value of the TOUCHINPUT#cxContact field.
cxContact
()

public int

Returns:

the value of the TOUCHINPUT#cyContact field.
cyContact
()

public long

Returns:

the value of the TOUCHINPUT#dwExtraInfo field.
dwExtraInfo
()

public int

Returns:

the value of the TOUCHINPUT#dwFlags field.
dwFlags
()

public int

Returns:

the value of the TOUCHINPUT#dwID field.
dwID
()

public int

Returns:

the value of the TOUCHINPUT#dwMask field.
dwMask
()

public int

Returns:

the value of the TOUCHINPUT#dwTime field.
dwTime
()

protected TOUCHINPUT
public long

Returns:

the value of the TOUCHINPUT#hSource field.
hSource
()

protected TOUCHINPUT.Buffer
public int

Returns:

the value of the TOUCHINPUT#x field.
x
()

public int

Returns:

the value of the TOUCHINPUT#y field.
y
()

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final TOUCHINPUT ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new TOUCHINPUT.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by TOUCHINPUT#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

cxContactback to summary
public int cxContact()
Returns:int

the value of the TOUCHINPUT#cxContact field.

Annotations
@NativeType:DWORD
cyContactback to summary
public int cyContact()
Returns:int

the value of the TOUCHINPUT#cyContact field.

Annotations
@NativeType:DWORD
dwExtraInfoback to summary
public long dwExtraInfo()
Returns:long

the value of the TOUCHINPUT#dwExtraInfo field.

Annotations
@NativeType:ULONG_PTR
dwFlagsback to summary
public int dwFlags()
Returns:int

the value of the TOUCHINPUT#dwFlags field.

Annotations
@NativeType:DWORD
dwIDback to summary
public int dwID()
Returns:int

the value of the TOUCHINPUT#dwID field.

Annotations
@NativeType:DWORD
dwMaskback to summary
public int dwMask()
Returns:int

the value of the TOUCHINPUT#dwMask field.

Annotations
@NativeType:DWORD
dwTimeback to summary
public int dwTime()
Returns:int

the value of the TOUCHINPUT#dwTime field.

Annotations
@NativeType:DWORD
getElementFactoryback to summary
protected TOUCHINPUT getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
hSourceback to summary
public long hSource()
Returns:long

the value of the TOUCHINPUT#hSource field.

Annotations
@NativeType:HANDLE
selfback to summary
protected TOUCHINPUT.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
xback to summary
public int x()
Returns:int

the value of the TOUCHINPUT#x field.

Annotations
@NativeType:LONG
yback to summary
public int y()
Returns:int

the value of the TOUCHINPUT#y field.

Annotations
@NativeType:LONG