This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9252 - Common keyboard actions for Simulator
Attached to Project:
Rockbox
Opened by Tomer Shalev (tomers) - Friday, 08 August 2008, 11:24 GMT+2
Last edited by Tomer Shalev (tomers) - Tuesday, 15 December 2009, 08:46 GMT+2
Opened by Tomer Shalev (tomers) - Friday, 08 August 2008, 11:24 GMT+2
Last edited by Tomer Shalev (tomers) - Tuesday, 15 December 2009, 08:46 GMT+2
|
DetailsNote: This is work in progress.
Status: Code implemented Manual not updated Wiki not updated (only after commit) The idea of this patch is to have the same keyboard keys assign to the same actions in all platforms. For example, have +/- keys (both on keyboard and on Numpad) are assigned to Volume Up and Volume Down keys of the original platform. For platforms which do not have these keys, pressing the +/- keys in the simulator will do nothing. This change will help developers to do manual regression testing on lots of platforms easily, as they do not have to memorize each platform's key assignment. Future development: Display key assignment on screen, and/or on console |
This task depends upon
Also, the simulators should be consistent with the corresponding device only, not with each other (if that makes sense).
Now displays keyboard assignment on console on load, and when pressing the '?' key.
Moved target specific key assignments from button.c to uisdl.h.
Tested on various targets.
#ifdef HAVE_TOUCHSCREEN
printf("A, End\n", UI_KEY_SPECIAL_STR);
#else
printf("A, End; Keypad 1 (END)\n", UI_KEY_SPECIAL_STR);
#endif
Shouldn't there be a %s somewhere in that printf()?
Note that we should also update the background images of various players, as the former key used are shown on each image.
I have no clue as to where the original images without these labels are, if there are such images at all.
Hopefully, when this patch is committed, we should also update the Twiki page, and remove the shortcut keys shown there (http://www.rockbox.org/twiki/bin/view/Main/UiSimulator).