SDL_events.h
Estructura SDL_DollarGestureEvent
typedef struct SDL_DollarGestureEvent { Uint32 type; /**< ::SDL_DOLLARGESTURE or ::SDL_DOLLARRECORD */ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */ SDL_TouchID touchId; /**< The touch device id */ SDL_GestureID gestureId; Uint32 numFingers; float error; float x; /**< Normalized center of gesture */ float y; /**< Normalized center of gesture */ } SDL_DollarGestureEvent;
Miembros
- type
- SDL_DOLLARGESTURE o SDL_DOLLARRECORD
- timestamp
- Marca de tiempo en milisegundos.
- touchId
- El identificador del dispositivo táctil.
- gestureId
- El id único del gesto más cercano al trazo realizado.
- numFingers
- El número de dedos utilizados para dibujar el trazo-
- error
- La diferencia entre la plantilla del gesto y el gesto real realizado (un error menor es una mejor coincidencia).
- x
- El centro normalizado del gesto.
- y
- El centro normalizado del gesto.
Observaciones
SDL_DollarGestureEvent es un miembro de la unión SDL_Event y se utiliza cuando se notifica un evento de tipo SDL_DOLLARGESTURE. Se accede a través del campo dgesture del evento.
x e y están en el rango de 0 a 1.
Para SDL_DOLLARRECORD sólo son válidos touchId y gestureId.