Embedded SDK
Embedded SDK
|
#include "app_config.h"
#include <string.h>
#include "nbgl_obj.h"
#include "nbgl_debug.h"
#include "nbgl_touch.h"
#include "nbgl_screen.h"
#include "os_pic.h"
#include "os_io_seproxyhal.h"
Go to the source code of this file.
Macros | |
#define | SWIPE_THRESHOLD_X 10 |
#define | SWIPE_THRESHOLD_Y 20 |
Functions | |
void | nbgl_touchHandler (nbgl_touchStatePosition_t *touchStatePosition, uint32_t currentTime) |
Function to be called periodically to check touchscreen state and coordinates. More... | |
bool | nbgl_touchGetTouchedPosition (nbgl_obj_t *obj, nbgl_touchStatePosition_t **firstPos, nbgl_touchStatePosition_t **lastPos) |
uint32_t | nbgl_touchGetTouchDuration (nbgl_obj_t *obj) |
nbgl_obj_t * | nbgl_touchGetObjectFromId (nbgl_obj_t *obj, uint8_t id) |
parse all the children of the given object, recursively, until an object with the given touch if is found. More... | |
Implementation of touchscreen management in new BAGL
Definition in file nbgl_touch.c.
#define SWIPE_THRESHOLD_X 10 |
Definition at line 212 of file nbgl_touch.c.
#define SWIPE_THRESHOLD_Y 20 |
Definition at line 213 of file nbgl_touch.c.
nbgl_obj_t* nbgl_touchGetObjectFromId | ( | nbgl_obj_t * | obj, |
uint8_t | id | ||
) |
parse all the children of the given object, recursively, until an object with the given touch if is found.
obj | parent of the touched object |
id | id of the touched object to find |
Definition at line 393 of file nbgl_touch.c.
uint32_t nbgl_touchGetTouchDuration | ( | nbgl_obj_t * | obj | ) |
Definition at line 377 of file nbgl_touch.c.
bool nbgl_touchGetTouchedPosition | ( | nbgl_obj_t * | obj, |
nbgl_touchStatePosition_t ** | firstPos, | ||
nbgl_touchStatePosition_t ** | lastPos | ||
) |
Definition at line 364 of file nbgl_touch.c.
void nbgl_touchHandler | ( | nbgl_touchStatePosition_t * | touchStatePosition, |
uint32_t | currentTime | ||
) |
Function to be called periodically to check touchscreen state and coordinates.
touchStatePosition | state and position read from touch screen |
currentTime | current time in ms |
Definition at line 265 of file nbgl_touch.c.