Skip to content

Commit

Permalink
rocker: keymap adjustments
Browse files Browse the repository at this point in the history
Change-Id: I8f8b781c388af224a23419f1ee3f4bc586d04742
  • Loading branch information
bahusoid committed Oct 17, 2024
1 parent 0515245 commit 1745f11
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions apps/plugins/imageviewer/imageviewer_button.h
Original file line number Diff line number Diff line change
Expand Up @@ -443,16 +443,19 @@
#define IMGVIEW_MENU BUTTON_MENU

#elif CONFIG_KEYPAD == AGPTEK_ROCKER_PAD
#define IMGVIEW_ZOOM_IN BUTTON_VOLUP
#define IMGVIEW_ZOOM_OUT BUTTON_VOLDOWN
#define IMGVIEW_UP BUTTON_UP
#define IMGVIEW_DOWN BUTTON_DOWN
#define IMGVIEW_LEFT BUTTON_LEFT
#define IMGVIEW_RIGHT BUTTON_RIGHT
#define IMGVIEW_NEXT (BUTTON_SELECT|BUTTON_RIGHT)
#define IMGVIEW_PREVIOUS (BUTTON_SELECT|BUTTON_LEFT)
#define IMGVIEW_QUIT (BUTTON_POWER|BUTTON_REL)
#define IMGVIEW_MENU (BUTTON_SELECT|BUTTON_REL)
#define IMGVIEW_ZOOM_PRE BUTTON_SELECT
#define IMGVIEW_ZOOM_IN (BUTTON_SELECT | BUTTON_REL)
#define IMGVIEW_ZOOM_OUT (BUTTON_SELECT | BUTTON_REPEAT)
#define IMGVIEW_UP BUTTON_UP
#define IMGVIEW_DOWN BUTTON_DOWN
#define IMGVIEW_LEFT BUTTON_LEFT
#define IMGVIEW_RIGHT BUTTON_RIGHT
#define IMGVIEW_NEXT BUTTON_VOLUP
#define IMGVIEW_NEXT_REPEAT (BUTTON_VOLUP|BUTTON_REPEAT)
#define IMGVIEW_PREVIOUS BUTTON_VOLDOWN
#define IMGVIEW_PREVIOUS_REPEAT (BUTTON_VOLDOWN|BUTTON_REPEAT)
#define IMGVIEW_MENU (BUTTON_POWER|BUTTON_REPEAT)
#define IMGVIEW_QUIT (BUTTON_POWER|BUTTON_REL)

#elif CONFIG_KEYPAD == XDUOO_X3_PAD
#define IMGVIEW_ZOOM_PRE BUTTON_PLAY
Expand Down

0 comments on commit 1745f11

Please sign in to comment.