ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Mobile specific functions / Multi-Touch functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
GesturePointerType (Function)
In french: GesteTypePointer
Returns the type of pointer used on the device: finger, mouse or stylus.
Note: This function is only available in WINDEV so that it can be used in the simulator..
Example
nType is int = GesturePointerType()
IF nType = typePointerFinger THEN Info("Le pointeur utilisé est le doigt.")
Syntax
<Result> = GesturePointerType([<Pointer>])
<Result>: Integer
  • Pointer type used,
  • -1 if an error occurred.
The type of pointer can correspond to one of the following constants:
typePointerFingerThe pointer being used is the finger.
typePointerMouseThe pointer being used is the mouse.
typePointerStylusThe pointer being used is the stylus.
<Pointer>: Optional integer
Pointer index to find out. The index of the first pointer is set to 1.
  • If this parameter is not specified, the function will return the position of the first pointer.
  • If the index does not correspond to a valid pointer, the function will return -1.
iPhone/iPadMac Catalyst Only one pointer is managed.
Remarks
  • The function GesturePointerType function must be used in events related to pointer movements: click, move, pointer down, pointer up, scroll, etc. If GesturePointerType is called in another event or process, <Result> will correspond to '-1'.
  • To get the pointer index that triggered the execution of an event linked to a movement on the screen, use GestureCurrentPointer.
  • iPhone/iPadMac Catalyst Only one pointer is managed.
Component: wd300java.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help