#include "zoom.h"
#include "math.h"
#include "multidrag.h"
Go to the source code of this file.
◆ get_zoom()
Access array of zoom_t of size MAX_TOUCHES.
- Returns
- Pointer to first element of array of zoom_t of size MAX_TOUCHES
Definition at line 54 of file zoom.c.
◆ init_zoom()
Initialize zoom data structures.
Definition at line 9 of file zoom.c.
◆ recognize_zoom()
Recognize zoom gesture. This gesture locks the number of fingers once any finger starts moving.
- Parameters
-
event | touch event to recognize |
Definition at line 19 of file zoom.c.
◆ set_on_zoom()
int set_on_zoom |
( |
void(*)(const zoom_t *) |
listener | ) |
|
Subscribe listener to zoom gesture updates.
- Parameters
-
listener | accepts a const zoom_t* |
- Returns
- 0 if first listener, 1 if replacing existing listener
Definition at line 58 of file zoom.c.
◆ on_zoom
Definition at line 7 of file zoom.c.
◆ zoom_d
Definition at line 6 of file zoom.c.