@@ -96,7 +96,65 @@ void ui_reset_progress();
96
96
#define LOGD (...) do {} while (0)
97
97
#endif
98
98
99
+ // Dream-specific key codes by LeshaK
100
+ // Modify for Samsung Spica i5700
101
+
102
+ #define KEY_DREAM_HOME 227 // = KEY_HOME
103
+ #define KEY_DREAM_RED 249 // = KEY_END
104
+ #define KEY_DREAM_VOLUMEDOWN 209 // = KEY_VOLUMEDOWN
105
+ #define KEY_DREAM_VOLUMEUP 201 // = KEY_VOLUMEUP
106
+ #define KEY_DREAM_SYM 127 // = KEY_COMPOSE
107
+ #define KEY_DREAM_MENU 211 // = KEY_MENU
108
+ #define KEY_DREAM_BACK 212 // = KEY_BACK
109
+ #define KEY_DREAM_FOCUS 211 // = KEY_HP (light touch on camera)
110
+ #define KEY_DREAM_CAMERA 250 // = KEY_CAMERA
111
+ #define KEY_DREAM_AT 215 // = KEY_EMAIL
112
+ #define KEY_DREAM_GREEN 231
113
+ #define KEY_DREAM_FATTOUCH 258 // = BTN_2 ???
114
+ #define KEY_DREAM_BALL 272 // = BTN_MOUSE
115
+ #define KEY_DREAM_TOUCH 330 // = BTN_TOUCH
116
+
117
+ // For Samsung by LeshaK
118
+ #define KEY_I5700_CENTER 204
119
+ #define KEY_I5700_DOWN 210
120
+ #define KEY_I5700_UP 202
121
+
122
+ //Redefine defaults
123
+ #undef KEY_HOME
124
+ #define KEY_HOME KEY_DREAM_HOME
125
+ #undef KEY_END
126
+ #define KEY_END KEY_DREAM_RED
127
+ #undef KEY_VOLUMEDOWN
128
+ #define KEY_VOLUMEDOWN KEY_DREAM_VOLUMEDOWN
129
+ #undef KEY_VOLUMEUP
130
+ #define KEY_VOLUMEUP KEY_DREAM_VOLUMEUP
131
+ #undef KEY_COMPOSE
132
+ #define KEY_COMPOSE KEY_DREAM_SYM
133
+ #undef KEY_MENU
134
+ #define KEY_MENU KEY_DREAM_MENU
135
+ #undef KEY_BACK
136
+ #define KEY_BACK KEY_DREAM_BACK
137
+ #undef KEY_HP
138
+ #define KEY_HP KEY_DREAM_FOCUS
139
+ #undef KEY_CAMERA
140
+ #define KEY_CAMERA KEY_DREAM_CAMERA
141
+ #undef KEY_EMAIL
142
+ #define KEY_EMAIL KEY_DREAM_AT
143
+ #undef BTN_2
144
+ #define BTN_2 KEY_DREAM_FATTOUCH
145
+ #undef BTN_MOUSE
146
+ #define BTN_MOUSE KEY_DREAM_BALL
147
+ #undef BTN_TOUCH
148
+ #define BTN_TOUCH KEY_DREAM_TOUCH
149
+ #undef KEY_DOWN
150
+ #define KEY_DOWN KEY_I5700_DOWN
151
+ #undef KEY_UP
152
+ #define KEY_UP KEY_I5700_UP
153
+ #undef KEY_SEND
154
+ #define KEY_SEND KEY_I5700_CENTER
155
+
99
156
#define STRINGIFY (x ) #x
100
157
#define EXPAND (x ) STRINGIFY(x)
158
+ //#define DEBUG 1
101
159
102
160
#endif // RECOVERY_COMMON_H
0 commit comments