Embedded SDK
Embedded SDK
|
Go to the source code of this file.
Macros | |
#define | SHORT_TOUCH_DURATION 0 |
#define | LONG_TOUCH_DURATION 3000 |
Functions | |
void | nbgl_touchInit (bool fromUx) |
Function to initialize the touch context. More... | |
void | nbgl_touchHandler (bool fromUx, nbgl_touchStatePosition_t *touchEvent, uint32_t currentTimeMs) |
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... | |
TouchScreen management of the new BOLOS Graphical Library
Definition in file nbgl_touch.h.
#define LONG_TOUCH_DURATION 3000 |
Definition at line 26 of file nbgl_touch.h.
#define SHORT_TOUCH_DURATION 0 |
Definition at line 24 of file nbgl_touch.h.
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 419 of file nbgl_touch.c.
uint32_t nbgl_touchGetTouchDuration | ( | nbgl_obj_t * | obj | ) |
Definition at line 402 of file nbgl_touch.c.
bool nbgl_touchGetTouchedPosition | ( | nbgl_obj_t * | obj, |
nbgl_touchStatePosition_t ** | firstPos, | ||
nbgl_touchStatePosition_t ** | lastPos | ||
) |
Definition at line 388 of file nbgl_touch.c.
void nbgl_touchHandler | ( | bool | fromUx, |
nbgl_touchStatePosition_t * | touchStatePosition, | ||
uint32_t | currentTime | ||
) |
Function to be called periodically to check touchscreen state and coordinates.
fromUx | if true, means this is called from the UX, not the App |
touchStatePosition | state and position read from touch screen |
currentTime | current time in ms |
Definition at line 285 of file nbgl_touch.c.
void nbgl_touchInit | ( | bool | fromUx | ) |
Function to initialize the touch context.
fromUx | if true, means to initialize the UX context, otherwise App one |
Definition at line 272 of file nbgl_touch.c.