Package org.lwjgl.system.windows
Class TOUCHINPUT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.windows.TOUCHINPUT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class TOUCHINPUT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceEncapsulates data for touch input.Layout
struct TOUCHINPUT { LONGx(); LONGy(); HANDLEhSource(); DWORDdwID(); DWORDdwFlags(); DWORDdwMask(); DWORDdwTime(); ULONG_PTRdwExtraInfo(); DWORDcxContact(); DWORDcyContact(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTOUCHINPUT.BufferAn array ofTOUCHINPUTstructs.
-
Constructor Summary
Constructors Constructor Description TOUCHINPUT(java.nio.ByteBuffer container)Creates aTOUCHINPUTinstance 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 TOUCHINPUTcalloc()Returns a newTOUCHINPUTinstance allocated withmemCalloc.static TOUCHINPUT.Buffercalloc(int capacity)Returns a newTOUCHINPUT.Bufferinstance allocated withmemCalloc.static TOUCHINPUT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newTOUCHINPUT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static TOUCHINPUTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newTOUCHINPUTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static TOUCHINPUTcallocStack()Deprecated.static TOUCHINPUT.BuffercallocStack(int capacity)Deprecated.static TOUCHINPUT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static TOUCHINPUTcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static TOUCHINPUTcreate()Returns a newTOUCHINPUTinstance allocated withBufferUtils.static TOUCHINPUT.Buffercreate(int capacity)Returns a newTOUCHINPUT.Bufferinstance allocated withBufferUtils.static TOUCHINPUTcreate(long address)Returns a newTOUCHINPUTinstance for the specified memory address.static TOUCHINPUT.Buffercreate(long address, int capacity)Create aTOUCHINPUT.Bufferinstance at the specified memory.static TOUCHINPUTcreateSafe(long address)static TOUCHINPUT.BuffercreateSafe(long address, int capacity)intcxContact()the width of the touch contact area in hundredths of a pixel in physical screen coordinates.intcyContact()the height of the touch contact area in hundredths of a pixel in physical screen coordinates.longdwExtraInfo()an additional value associated with the touch event.intdwFlags()a set of bit flags that specify various aspects of touch point press, release, and motion.intdwID()a touch point identifier that distinguishes a particular touch input.intdwMask()a set of bit flags that specify which of the optional fields in the structure contain valid values.intdwTime()the time stamp for the event, in milliseconds.longhSource()a device handle for the source input device.static TOUCHINPUTmalloc()Returns a newTOUCHINPUTinstance allocated withmemAlloc.static TOUCHINPUT.Buffermalloc(int capacity)Returns a newTOUCHINPUT.Bufferinstance allocated withmemAlloc.static TOUCHINPUT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newTOUCHINPUT.Bufferinstance allocated on the specifiedMemoryStack.static TOUCHINPUTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newTOUCHINPUTinstance allocated on the specifiedMemoryStack.static TOUCHINPUTmallocStack()Deprecated.static TOUCHINPUT.BuffermallocStack(int capacity)Deprecated.static TOUCHINPUT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static TOUCHINPUTmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intncxContact(long struct)Unsafe version ofcxContact().static intncyContact(long struct)Unsafe version ofcyContact().static longndwExtraInfo(long struct)Unsafe version ofdwExtraInfo().static intndwFlags(long struct)Unsafe version ofdwFlags().static intndwID(long struct)Unsafe version ofdwID().static intndwMask(long struct)Unsafe version ofdwMask().static intndwTime(long struct)Unsafe version ofdwTime().static longnhSource(long struct)Unsafe version ofhSource().static intnx(long struct)Unsafe version ofx().static intny(long struct)Unsafe version ofy().intsizeof()intx()the x-coordinate (horizontal point) of the touch input.inty()the y-coordinate (vertical point) of the touch input.
-
-
-
Constructor Detail
-
TOUCHINPUT
public TOUCHINPUT(java.nio.ByteBuffer container)
Creates aTOUCHINPUTinstance 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
-
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 thedwMaskflags 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_TIMEFROMSYSTEMflag 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 thedwMaskmember has theUser32.TOUCHINPUTMASKF_CONTACTAREAflag 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 thedwMaskmember has theUser32.TOUCHINPUTMASKF_CONTACTAREAflag set.
-
malloc
public static TOUCHINPUT malloc()
Returns a newTOUCHINPUTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static TOUCHINPUT calloc()
Returns a newTOUCHINPUTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static TOUCHINPUT create()
Returns a newTOUCHINPUTinstance allocated withBufferUtils.
-
create
public static TOUCHINPUT create(long address)
Returns a newTOUCHINPUTinstance for the specified memory address.
-
createSafe
@Nullable public static TOUCHINPUT createSafe(long address)
-
malloc
public static TOUCHINPUT.Buffer malloc(int capacity)
Returns a newTOUCHINPUT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static TOUCHINPUT.Buffer calloc(int capacity)
Returns a newTOUCHINPUT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static TOUCHINPUT.Buffer create(int capacity)
Returns a newTOUCHINPUT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static TOUCHINPUT.Buffer create(long address, int capacity)
Create aTOUCHINPUT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static TOUCHINPUT.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static TOUCHINPUT mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static TOUCHINPUT callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static TOUCHINPUT mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static TOUCHINPUT callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static TOUCHINPUT.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static TOUCHINPUT.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static TOUCHINPUT.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 TOUCHINPUT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static TOUCHINPUT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newTOUCHINPUTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static TOUCHINPUT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newTOUCHINPUTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static TOUCHINPUT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newTOUCHINPUT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static TOUCHINPUT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newTOUCHINPUT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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().
-
-