ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Mobile specific functions / Multi-Touch functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
GesturePointerType (Function)
In french: GesteTypePointer
Returns the type of pointer used on the device: finger, mouse or stylus.
Remark: This function is available in WINDEV only to be used in the simulator.
Example
nType is int = GesturePointerType()
IF nType = typePointerFinger THEN Info("Finger is the pointer being used.")
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 subscript 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
  • GesturePointerType must be used in events that are linked to pointer movements: click, move, pointer pressed, pointer released, 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: wd290java.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/06/2023

Send a report | Local help