summaryrefslogtreecommitdiff
path: root/firmware/target/arm/s5l8700/meizu-m3/button-target.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/s5l8700/meizu-m3/button-target.h')
-rw-r--r--firmware/target/arm/s5l8700/meizu-m3/button-target.h25
1 files changed, 10 insertions, 15 deletions
diff --git a/firmware/target/arm/s5l8700/meizu-m3/button-target.h b/firmware/target/arm/s5l8700/meizu-m3/button-target.h
index 7fab9c4d64..8aaca17a54 100644
--- a/firmware/target/arm/s5l8700/meizu-m3/button-target.h
+++ b/firmware/target/arm/s5l8700/meizu-m3/button-target.h
@@ -22,7 +22,6 @@
22#define _BUTTON_TARGET_H_ 22#define _BUTTON_TARGET_H_
23 23
24#include <stdbool.h> 24#include <stdbool.h>
25#include "config.h"
26 25
27#define HAS_BUTTON_HOLD 26#define HAS_BUTTON_HOLD
28 27
@@ -30,25 +29,21 @@ bool button_hold(void);
30void button_init_device(void); 29void button_init_device(void);
31int button_read_device(void); 30int button_read_device(void);
32 31
33/* Toshiba Gigabeat specific button codes */ 32/* Meizu M3 specific button codes */
33#define BUTTON_PREVNEXT 0x00000001
34#define BUTTON_MENU 0x00000002
35#define BUTTON_PLAY 0x00000004
34 36
35#define BUTTON_LEFT 0x00000001 37/* there are no LEFT/RIGHT buttons, but other parts of the code expect them */
36#define BUTTON_RIGHT 0x00000002 38#define BUTTON_LEFT 0
37#define BUTTON_UP 0x00000004 39#define BUTTON_RIGHT 0
38#define BUTTON_DOWN 0x00000008
39 40
40#define BUTTON_SELECT 0x00000010 41#define BUTTON_MAIN (BUTTON_PREVNEXT|BUTTON_MENU|BUTTON_PLAY)
41 42
42#define BUTTON_MENU 0x00000020 43#define BUTTON_REMOTE 0
43#define BUTTON_PLAY 0x00000040
44
45
46#define BUTTON_MAIN (BUTTON_MENU|BUTTON_LEFT|BUTTON_RIGHT\
47 |BUTTON_UP|BUTTON_DOWN|BUTTON_SELECT|BUTTON_PLAY)
48
49#define BUTTON_REMOTE 0
50 44
51#define POWEROFF_BUTTON BUTTON_PLAY 45#define POWEROFF_BUTTON BUTTON_PLAY
52#define POWEROFF_COUNT 10 46#define POWEROFF_COUNT 10
53 47
54#endif /* _BUTTON_TARGET_H_ */ 48#endif /* _BUTTON_TARGET_H_ */
49