diff options
Diffstat (limited to 'firmware/export/button.h')
-rw-r--r-- | firmware/export/button.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/firmware/export/button.h b/firmware/export/button.h index f47639b3c7..0b4c8fd2b0 100644 --- a/firmware/export/button.h +++ b/firmware/export/button.h | |||
@@ -60,30 +60,30 @@ void wheel_send_events(bool send); | |||
60 | int button_apply_acceleration(const unsigned int data); | 60 | int button_apply_acceleration(const unsigned int data); |
61 | #endif | 61 | #endif |
62 | 62 | ||
63 | #define BUTTON_NONE 0x00000000 | 63 | #define BUTTON_NONE 0x00000000 |
64 | 64 | ||
65 | /* Button modifiers */ | 65 | /* Button modifiers */ |
66 | #define BUTTON_REL 0x02000000 | 66 | #define BUTTON_REL 0x02000000 |
67 | #define BUTTON_REPEAT 0x04000000 | 67 | #define BUTTON_REPEAT 0x04000000 |
68 | #define BUTTON_TOUCHPAD 0x08000000 | 68 | #define BUTTON_TOUCHSCREEN 0x08000000 |
69 | 69 | ||
70 | #ifdef HAVE_TOUCHPAD | 70 | #ifdef HAVE_TOUCHSCREEN |
71 | #if !defined(BUTTON_TOPLEFT) || !defined(BUTTON_TOPMIDDLE) \ | 71 | #if !defined(BUTTON_TOPLEFT) || !defined(BUTTON_TOPMIDDLE) \ |
72 | || !defined(BUTTON_TOPRIGHT) || !defined(BUTTON_MIDLEFT) \ | 72 | || !defined(BUTTON_TOPRIGHT) || !defined(BUTTON_MIDLEFT) \ |
73 | || !defined(BUTTON_CENTER) || !defined(BUTTON_MIDRIGHT) \ | 73 | || !defined(BUTTON_CENTER) || !defined(BUTTON_MIDRIGHT) \ |
74 | || !defined(BUTTON_BOTTOMLEFT) || !defined(BUTTON_BOTTOMMIDDLE) \ | 74 | || !defined(BUTTON_BOTTOMLEFT) || !defined(BUTTON_BOTTOMMIDDLE) \ |
75 | || !defined(BUTTON_BOTTOMRIGHT) | 75 | || !defined(BUTTON_BOTTOMRIGHT) |
76 | #error Touchpad button mode BUTTON_* defines not set up correctly | 76 | #error Touchscreen button mode BUTTON_* defines not set up correctly |
77 | #endif | 77 | #endif |
78 | enum touchpad_mode { | 78 | enum touchscreen_mode { |
79 | TOUCHPAD_POINT = 0, /* touchpad returns pixel co-ords */ | 79 | TOUCHSCREEN_POINT = 0, /* touchscreen returns pixel co-ords */ |
80 | TOUCHPAD_BUTTON, /* touchpad returns BUTTON_* area codes | 80 | TOUCHSCREEN_BUTTON, /* touchscreen returns BUTTON_* area codes |
81 | actual pixel value will still be accessable | 81 | actual pixel value will still be accessable |
82 | from button_get_data */ | 82 | from button_get_data */ |
83 | }; | 83 | }; |
84 | /* maybe define the number of buttons in button-target.h ? */ | 84 | /* maybe define the number of buttons in button-target.h ? */ |
85 | void touchpad_set_mode(enum touchpad_mode mode); | 85 | void touchscreen_set_mode(enum touchscreen_mode mode); |
86 | enum touchpad_mode touchpad_get_mode(void); | 86 | enum touchscreen_mode touchscreen_get_mode(void); |
87 | #endif | 87 | #endif |
88 | 88 | ||
89 | #endif /* _BUTTON_H_ */ | 89 | #endif /* _BUTTON_H_ */ |