diff options
author | Martin Scarratt <mmmm@rockbox.org> | 2006-08-18 09:31:00 +0000 |
---|---|---|
committer | Martin Scarratt <mmmm@rockbox.org> | 2006-08-18 09:31:00 +0000 |
commit | c341da2385737de39a9f1150e279b8390ca40339 (patch) | |
tree | ddfa45b9286a99126665d0dc6576666c124cf031 /apps | |
parent | 32dd5e97558d8ceae075b52dba6a56efbdd64827 (diff) | |
download | rockbox-c341da2385737de39a9f1150e279b8390ca40339.tar.gz rockbox-c341da2385737de39a9f1150e279b8390ca40339.zip |
Bookmark support for I-river remotes, also renamed bookmark delete button as it has changed to RECORD - Sorry Linus ;)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10643 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/keymaps/keymap-h1x0_h3x0.c | 58 | ||||
-rw-r--r-- | apps/lang/english.lang | 5 |
2 files changed, 57 insertions, 6 deletions
diff --git a/apps/keymaps/keymap-h1x0_h3x0.c b/apps/keymaps/keymap-h1x0_h3x0.c index f5ccfdce70..311ae89ea8 100644 --- a/apps/keymaps/keymap-h1x0_h3x0.c +++ b/apps/keymaps/keymap-h1x0_h3x0.c | |||
@@ -254,6 +254,26 @@ const struct button_mapping button_context_settings_h100lcdremote[] = { | |||
254 | LAST_ITEM_IN_LIST | 254 | LAST_ITEM_IN_LIST |
255 | };/* button_context_settings_h100lcdremote */ | 255 | };/* button_context_settings_h100lcdremote */ |
256 | 256 | ||
257 | const struct button_mapping button_context_settingsgraphical_h100lcdremote[] = { | ||
258 | { ACTION_SETTINGS_INC, BUTTON_RC_FF, BUTTON_NONE }, | ||
259 | { ACTION_SETTINGS_INCREPEAT, BUTTON_RC_FF|BUTTON_REPEAT, BUTTON_NONE }, | ||
260 | { ACTION_SETTINGS_DEC, BUTTON_RC_REW, BUTTON_NONE }, | ||
261 | { ACTION_SETTINGS_DECREPEAT, BUTTON_RC_REW|BUTTON_REPEAT, BUTTON_NONE }, | ||
262 | { ACTION_STD_PREV, BUTTON_RC_VOL_UP, BUTTON_NONE }, | ||
263 | { ACTION_STD_PREVREPEAT, BUTTON_RC_VOL_UP|BUTTON_REPEAT, BUTTON_NONE }, | ||
264 | { ACTION_STD_NEXT, BUTTON_RC_VOL_DOWN, BUTTON_NONE }, | ||
265 | { ACTION_STD_NEXTREPEAT, BUTTON_RC_VOL_DOWN|BUTTON_REPEAT, BUTTON_NONE }, | ||
266 | |||
267 | LAST_ITEM_IN_LIST | ||
268 | }; /* button_context_settingsgraphical */ | ||
269 | |||
270 | const struct button_mapping button_context_bmark_h100lcdremote[] = { | ||
271 | { ACTION_BMARK_DELETE, BUTTON_RC_REC, BUTTON_NONE }, | ||
272 | { ACTION_STD_OK, BUTTON_RC_MENU, BUTTON_NONE }, | ||
273 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGSGRAPHICAL), | ||
274 | }; /* button_context_settings_bmark */ | ||
275 | |||
276 | |||
257 | 277 | ||
258 | /********* H300 LCD remote ******/ | 278 | /********* H300 LCD remote ******/ |
259 | const struct button_mapping button_context_standard_h300lcdremote[] = { | 279 | const struct button_mapping button_context_standard_h300lcdremote[] = { |
@@ -292,6 +312,25 @@ const struct button_mapping button_context_listtree_h300lcdremote[] = { | |||
292 | 312 | ||
293 | }; /* button_context_listtree_h300lcdremote */ | 313 | }; /* button_context_listtree_h300lcdremote */ |
294 | 314 | ||
315 | const struct button_mapping button_context_settingsgraphical_h300lcdremote[] = { | ||
316 | { ACTION_SETTINGS_INC, BUTTON_RC_FF, BUTTON_NONE }, | ||
317 | { ACTION_SETTINGS_INCREPEAT, BUTTON_RC_FF|BUTTON_REPEAT, BUTTON_NONE }, | ||
318 | { ACTION_SETTINGS_DEC, BUTTON_RC_REW, BUTTON_NONE }, | ||
319 | { ACTION_SETTINGS_DECREPEAT, BUTTON_RC_REW|BUTTON_REPEAT, BUTTON_NONE }, | ||
320 | { ACTION_STD_PREV, BUTTON_RC_VOL_UP, BUTTON_NONE }, | ||
321 | { ACTION_STD_PREVREPEAT, BUTTON_RC_VOL_UP|BUTTON_REPEAT, BUTTON_NONE }, | ||
322 | { ACTION_STD_NEXT, BUTTON_RC_VOL_DOWN, BUTTON_NONE }, | ||
323 | { ACTION_STD_NEXTREPEAT, BUTTON_RC_VOL_DOWN|BUTTON_REPEAT, BUTTON_NONE }, | ||
324 | |||
325 | LAST_ITEM_IN_LIST | ||
326 | }; /* button_context_settingsgraphical */ | ||
327 | |||
328 | const struct button_mapping button_context_bmark_h300lcdremote[] = { | ||
329 | { ACTION_BMARK_DELETE, BUTTON_RC_REC, BUTTON_NONE }, | ||
330 | { ACTION_STD_OK, BUTTON_RC_MENU, BUTTON_NONE }, | ||
331 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGSGRAPHICAL), | ||
332 | }; /* button_context_settings_bmark */ | ||
333 | |||
295 | const struct button_mapping *button_context_settings_h300lcdremote = | 334 | const struct button_mapping *button_context_settings_h300lcdremote = |
296 | button_context_settings_h100lcdremote; | 335 | button_context_settings_h100lcdremote; |
297 | /* FIXME: non lcd remotes need mappings.. ?? */ | 336 | /* FIXME: non lcd remotes need mappings.. ?? */ |
@@ -306,7 +345,10 @@ static const struct button_mapping | |||
306 | *remote_button_context_std = button_context_standard_h100lcdremote, | 345 | *remote_button_context_std = button_context_standard_h100lcdremote, |
307 | *remote_button_context_wps = button_context_wps_h100lcdremote, | 346 | *remote_button_context_wps = button_context_wps_h100lcdremote, |
308 | *remote_button_context_listtree = button_context_listtree_h100lcdremote, | 347 | *remote_button_context_listtree = button_context_listtree_h100lcdremote, |
309 | *remote_button_context_settings = button_context_settings_h100lcdremote; | 348 | *remote_button_context_settings = button_context_settings_h100lcdremote, |
349 | *remote_button_context_settingsgraphical = button_context_settingsgraphical_h100lcdremote, | ||
350 | *remote_button_context_bmark = button_context_bmark_h100lcdremote; | ||
351 | |||
310 | static int _remote_type = 0; | 352 | static int _remote_type = 0; |
311 | 353 | ||
312 | static void remap_remote(void) | 354 | static void remap_remote(void) |
@@ -319,24 +361,32 @@ static void remap_remote(void) | |||
319 | remote_button_context_wps = NULL; | 361 | remote_button_context_wps = NULL; |
320 | remote_button_context_listtree = NULL; | 362 | remote_button_context_listtree = NULL; |
321 | remote_button_context_settings = NULL; | 363 | remote_button_context_settings = NULL; |
364 | remote_button_context_settingsgraphical = NULL; | ||
365 | remote_button_context_bmark = NULL; | ||
322 | break; | 366 | break; |
323 | case REMOTETYPE_H100_LCD: | 367 | case REMOTETYPE_H100_LCD: |
324 | remote_button_context_std = button_context_standard_h100lcdremote; | 368 | remote_button_context_std = button_context_standard_h100lcdremote; |
325 | remote_button_context_wps = button_context_wps_h100lcdremote; | 369 | remote_button_context_wps = button_context_wps_h100lcdremote; |
326 | remote_button_context_listtree = button_context_listtree_h100lcdremote; | 370 | remote_button_context_listtree = button_context_listtree_h100lcdremote; |
327 | remote_button_context_settings = button_context_settings_h100lcdremote; | 371 | remote_button_context_settings = button_context_settings_h100lcdremote; |
372 | remote_button_context_settingsgraphical = button_context_settingsgraphical_h100lcdremote; | ||
373 | remote_button_context_bmark = button_context_bmark_h100lcdremote; | ||
328 | break; | 374 | break; |
329 | case REMOTETYPE_H300_LCD: | 375 | case REMOTETYPE_H300_LCD: |
330 | remote_button_context_std = button_context_standard_h300lcdremote; | 376 | remote_button_context_std = button_context_standard_h300lcdremote; |
331 | remote_button_context_wps = button_context_wps_h300lcdremote; | 377 | remote_button_context_wps = button_context_wps_h300lcdremote; |
332 | remote_button_context_listtree = button_context_listtree_h300lcdremote; | 378 | remote_button_context_listtree = button_context_listtree_h300lcdremote; |
333 | remote_button_context_settings = button_context_settings_h300lcdremote; | 379 | remote_button_context_settings = button_context_settings_h300lcdremote; |
380 | remote_button_context_settingsgraphical = button_context_settingsgraphical_h300lcdremote; | ||
381 | remote_button_context_bmark = button_context_bmark_h300lcdremote; | ||
334 | break; | 382 | break; |
335 | case REMOTETYPE_H300_NONLCD: /* FIXME: add its tables */ | 383 | case REMOTETYPE_H300_NONLCD: /* FIXME: add its tables */ |
336 | remote_button_context_std = button_context_standard_h300lcdremote; | 384 | remote_button_context_std = button_context_standard_h300lcdremote; |
337 | remote_button_context_wps = button_context_wps_h300lcdremote; | 385 | remote_button_context_wps = button_context_wps_h300lcdremote; |
338 | remote_button_context_listtree = button_context_listtree_h300lcdremote; | 386 | remote_button_context_listtree = button_context_listtree_h300lcdremote; |
339 | remote_button_context_settings = button_context_settings_h300lcdremote; | 387 | remote_button_context_settings = button_context_settings_h300lcdremote; |
388 | remote_button_context_settingsgraphical = button_context_settingsgraphical_h300lcdremote; | ||
389 | remote_button_context_bmark = button_context_bmark_h300lcdremote; | ||
340 | break; | 390 | break; |
341 | } | 391 | } |
342 | } | 392 | } |
@@ -366,10 +416,12 @@ const struct button_mapping* get_context_mapping_remote(int context) | |||
366 | case CONTEXT_TREE: | 416 | case CONTEXT_TREE: |
367 | case CONTEXT_LIST: | 417 | case CONTEXT_LIST: |
368 | return remote_button_context_listtree; | 418 | return remote_button_context_listtree; |
369 | 419 | case CONTEXT_SETTINGSGRAPHICAL: | |
420 | return remote_button_context_settingsgraphical; | ||
421 | case CONTEXT_BOOKMARKSCREEN: | ||
422 | return remote_button_context_bmark; | ||
370 | 423 | ||
371 | case CONTEXT_YESNOSCREEN: | 424 | case CONTEXT_YESNOSCREEN: |
372 | case CONTEXT_BOOKMARKSCREEN: | ||
373 | ; /* fall out of the switch */ | 425 | ; /* fall out of the switch */ |
374 | } | 426 | } |
375 | return remote_button_context_std; | 427 | return remote_button_context_std; |
diff --git a/apps/lang/english.lang b/apps/lang/english.lang index 5b72b05f32..9b1af8388c 100644 --- a/apps/lang/english.lang +++ b/apps/lang/english.lang | |||
@@ -4775,11 +4775,10 @@ | |||
4775 | desc: Used on the bookmark select window to indicated the bookmark delete option | 4775 | desc: Used on the bookmark select window to indicated the bookmark delete option |
4776 | user: | 4776 | user: |
4777 | <source> | 4777 | <source> |
4778 | *: "ON+Play = Delete" | 4778 | *: "RECORD = Delete" |
4779 | </source> | 4779 | </source> |
4780 | <dest> | 4780 | <dest> |
4781 | *: "ON+Play = Delete" | 4781 | *: "RECORD = Delete" |
4782 | h100,h120,h300: "ON+NAVI = Delete" | ||
4783 | </dest> | 4782 | </dest> |
4784 | <voice> | 4783 | <voice> |
4785 | *: "" | 4784 | *: "" |