3.1.9.2 Gesture Module APIs
void qtm_gestures_2d_clearGesture(void);
Description: Clears the previously reported gesture. The application can clear the gesture after reading it. Otherwise, the gesture will be reported continuously.
Parameter: None.
Return: None.
touch_ret_t qtm_init_gestures_2d(void);
Description: Initializes gesture tracking variables.
Parameter: None.
Return:
| Type | Description |
|---|---|
touch_ret_t | Touch library return status |
touch_ret_t qtm_gestures_2d_process(qtm_gestures_2d_control_t *qtm_gestures_2d_control);
Description: Gesture engine processes updated touch info.
Parameter:
| Type | Description |
|---|---|
qtm_gestures_2d_control_t * | Pointer to the Gesture Module Control Structure |
Return:
| Type | Description |
|---|---|
touch_ret_t | Touch library return status |
void qtm_update_gesture_2d_timer(uint16_t time_elapsed_since_update);
Description: The internal time tracking variable will be updated and used gesture detection timings. It is recommended to call this function periodically (e.g., 1 ms and pass 1 as the value).
Parameter:
| Type | Description |
|---|---|
uint16_t | Timelapse since last call in milliseconds |
Return: None.
uint16_t qtm_get_gesture_2d_module_id(void);
Description: Returns the module ID.
Parameter: None.
Return:
| Type | Description |
|---|---|
uint16_t | Module ID |
uint8_t qtm_get_gesture_2d_module_ver(void);
Description: Returns the module firmware version.
Parameter: None.
Return:
| Type | Description |
|---|---|
uint8_t | Module version |
