diff options
Diffstat (limited to 'firmware/target/arm/tcc780x/cowond2/button-target.h')
-rw-r--r-- | firmware/target/arm/tcc780x/cowond2/button-target.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/firmware/target/arm/tcc780x/cowond2/button-target.h b/firmware/target/arm/tcc780x/cowond2/button-target.h index aa336f2f1f..1ce602a30d 100644 --- a/firmware/target/arm/tcc780x/cowond2/button-target.h +++ b/firmware/target/arm/tcc780x/cowond2/button-target.h @@ -23,15 +23,17 @@ #include <stdbool.h> #include "config.h" +#define HAS_BUTTON_HOLD + +bool button_hold(void); void button_init_device(void); int button_read_device(void); /* Main unit's buttons */ #define BUTTON_POWER 0x00000001 -#define BUTTON_HOLD 0x00000002 -#define BUTTON_PLUS 0x00000004 -#define BUTTON_MINUS 0x00000008 -#define BUTTON_MENU 0x00000010 +#define BUTTON_PLUS 0x00000002 +#define BUTTON_MINUS 0x00000004 +#define BUTTON_MENU 0x00000008 /* Faked buttons based on touchscreen quadrants (not yet read) */ #define BUTTON_UP 0x00000020 |