19 #include "seproxyhal_protocol.h"
26 static uint32_t nbTicks;
35 static bool ux_forward_event(
bool ignoring_app_if_ux_busy)
40 G_ux_params.len = os_sched_last_status(TASK_BOLOS_UX);
47 else if (!ignoring_app_if_ux_busy
66 bool displayEnabled = ux_forward_event(
true);
73 pos.
x = (seph_packet[4] << 8) + seph_packet[5];
74 pos.
y = (seph_packet[6] << 8) + seph_packet[7];
75 #ifdef HAVE_HW_TOUCH_SWIPE
76 pos.swipe = seph_packet[10];
90 void ux_process_button_event(uint8_t seph_packet[])
92 bool displayEnabled = ux_forward_event(
true);
98 uint8_t buttons_state = seph_packet[3] >> 1;
114 bool displayEnabled = ux_forward_event(
true);
121 if (!displayEnabled) {
131 io_touch_info_t touch_info;
132 touch_get_last_info(&touch_info);
134 pos.
x = touch_info.x;
135 pos.
y = touch_info.y;
149 ux_forward_event(
false);
void nbgl_refresh(void)
This functions refreshes the actual screen on display with what has changed since the last refresh.
void nbgl_objAllowDrawing(bool enable)
This functions enables or disables drawing/refresh for all further calls.
void nbgl_screenRedraw(void)
This function redraws the whole screen on top of stack and its children.
void nbgl_screenHandler(uint32_t intervaleMs)
Function to be called periodically by system to enable using ticker.
void nbgl_touchHandler(bool fromUx, nbgl_touchStatePosition_t *touchEvent, uint32_t currentTimeMs)
Function to be called periodically to check touchscreen state and coordinates.
@ PRESSED
the finger is currently pressing the screen
@ RELEASED
the finger has been released from the screen
The low level Touchscreen event, coming from driver.
int16_t y
vertical position of the touch (or for a RELEASED the last touched point)
int16_t x
horizontal position of the touch (or for a RELEASED the last touched point)
nbgl_touchState_t state
state of the touch event, e.g PRESSED or RELEASED
void ux_process_default_event(void)
void ux_process_finger_event(uint8_t seph_packet[])
Process finger event.
void ux_process_ticker_event(void)
Process the ticker_event to the os ux handler. Ticker event callback is always called whatever the re...