AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones específicas para móviles / Funciones Multi-Touch
  • Overview
  • Gesture variable
  • Example
  • Retrieving gesture information
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Overview
The Gesture variable is used to retrieve gesture (sweep) parameters: direction, speed, distance, etc.
This variable can be used:
  • in the swipe event of elements in a Looper control, to know the swipe direction.
  • in multitouch events (zoom, scroll and swipe) to avoid declaring parameters in the events.
Gesture variable
The Gesture variable includes the following elements:
iPhone/iPad Gesture.AltitudeAngle
Real
Angle (expressed in degrees) corresponding to the inclination of an Apple Pencil in relation to the tablet plan.
This variable is filled in the "Pressed/Left button down" event only.
iPhone/iPadIOS Widget Gesture.Azimuth
Real
Azimuth angle (expressed in degrees) of an Apple Pencil in relation to the mark of current control.
This variable is filled in the "Pressed/Left button down" event only.
Android Gesture.Direction
Integer constant

Direction of the gesture. Can correspond to one of the following constants:
  • BottomTop Scan from bottom to top.
  • RightLeft Scan from right to left.
  • LeftRight Scan from left to right.
  • UpDown Scan from top to bottom.
This variable is filled in Scroll and Swipe events.
Android Gesture.Distance
In the case of scroll: displacement value (in pixels) in the direction indicated by Gesture.Direction.
For pinch zoom: value of the distance (in pixels) between the two contact points.
This variable is filled in Scroll and Pinch zoom events.
iPhone/iPad Gesture.Force
Real
Pressure during a press.
This pressure can take a value included between 0,0 and 1,0.
This variable is filled in the "Pressed/Left button down" event only.
iPhone/iPad Gesture.MaximumForce
Real
Maximum pressure during a press.
This pressure can take a value included between 0,0 and 1,0.
This variable is filled in the "Pressed/Left button down" event only.
Android Gesture.Speed
Integer
Speed of the move in the direction specified by Gesture.Direction.
This speed is expressed in pixels per second.
This variable is filled in Swipe events.
Example

Retrieving gesture information

// Scroll with Finger event of IMG_Image
SWITCH Gesture.Direction
	CASE RightLeft: SEL_Direction = 1
	CASE LeftRight: SEL_Direction = 2
	CASE UpDown: SEL_Direction = 3
	CASE BottomToTop: SEL_Direction = 4
END

EDT_Speed = Gesture.Speed
EDT_Distance = Gesture.Distance
Versión mínima requerida
  • Versión 18
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local