Skip to content

Commit

Permalink
Merge pull request #453 from LedgerHQ/support-long-press-in-screenshots
Browse files Browse the repository at this point in the history
Support long press button in screenshots generation
  • Loading branch information
srasoamiaramanana-ledger authored Nov 2, 2023
2 parents 5893d08 + 78083f9 commit e54fb1b
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 e54fb1b

Please sign in to comment.