Skip to content

Commit

Permalink
Support long press button in screenshots generation
Browse files Browse the repository at this point in the history
  • Loading branch information
nroggeman-ledger authored and srasoamiaramanana-ledger committed Oct 27, 2023
1 parent 2b9e093 commit 1ee356d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib_nbgl/include/nbgl_obj.h
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ enum {
KEYPAD_ID,
KEYBOARD_ID,
ENTERED_TEXT_ID,
LONG_PRESS_BUTTON_ID,
CONTROLS_ID, // when multiple controls in the same pages (buttons, switches, radios)
NB_CONTROL_IDS
};
Expand Down
1 change: 1 addition & 0 deletions lib_nbgl/src/nbgl_layout.c
Original file line number Diff line number Diff line change
Expand Up @@ -1914,6 +1914,7 @@ int nbgl_layoutAddLongPressButton(nbgl_layout_t *layout,
container->children
= (nbgl_obj_t **) nbgl_containerPoolGet(container->nbChildren, layoutInt->layer);
container->obj.alignment = BOTTOM_MIDDLE;
container->obj.touchId = LONG_PRESS_BUTTON_ID;
container->obj.touchMask = ((1 << TOUCHING) | (1 << TOUCH_RELEASED) | (1 << OUT_OF_TOUCH));

button = (nbgl_button_t *) nbgl_objPoolGet(BUTTON, layoutInt->layer);
Expand Down

0 comments on commit 1ee356d

Please sign in to comment.