|
|
|
|
|
- Position of several pointers
- Limitations
- Miscellaneous
GestureCurrentPointer (Function) In french: GestePointeurEncours Returns the pointer index (finger or stylus) that triggered the call of a specific multi-touch event in an Image control. This index can be used by GesturePosX and/or GesturePosY to get the vertical and/or horizontal position of the corresponding pointer.
// Retrieve the horizontal position of the pointer that triggered // the call to the "Pressed" event associated to an Image control PositionX is int PositionX = GesturePosX(GestureCurrentPointer())
Syntax
<Result> = GestureCurrentPointer()
<Result>: Integer Pointer index (finger or stylus) that triggered the call of a "Pressed" or "Released" event associated with an Image control. The first pointer that touches the screen corresponds to index 1.Note: In the simulator or Android emulator, this number is always equal to 1. Remarks Miscellaneous - To find out the horizontal position (X) of a pointer, use GesturePosX.
- To find out the vertical position (Y) of a pointer, use GesturePosY.
- To find out the number of pointers in contact with the screen, use GestureNbPointer.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|