Rockbox

Tasklist

FS#4905 - remote buttons for simulator

Attached to Project: Rockbox
Opened by David Rothenberger (drothenberger) - Friday, 24 March 2006, 05:51 GMT
Last edited by Thomas Martitz (kugel.) - Sunday, 05 June 2011, 11:36 GMT
Task Type Patches
Category Simulator
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

This patch allows generation of remote events in the simulator. Remote keys are generated when Caps Lock is enabled, normal key events when Caps Lock is disabled.
This task depends upon

View Dependency Graph

Closed by  Thomas Martitz (kugel.)
Sunday, 05 June 2011, 11:36 GMT
Reason for closing:  Out of Date
Additional comments about closing:  There doesn't seem to be interest in this anymore. Open a new task if this is wrong.
Comment by David Rothenberger (drothenberger) - Friday, 24 March 2006, 17:51 GMT
I updated the patch to apply cleanly to latest CVS.
Comment by David Rothenberger (drothenberger) - Friday, 21 July 2006, 02:14 GMT
Updated the patch for CVS HEAD. Also verified it compiles on all targets and sim targets.
Comment by David Rothenberger (drothenberger) - Monday, 24 July 2006, 20:44 GMT
Updated the patch for CVS HEAD. Compiles on all targets and sim targets.
Comment by David Rothenberger (drothenberger) - Monday, 14 August 2006, 22:35 GMT
Updated the patch for CVS HEAD. Compiles on all targets and sim targets.
Comment by Davide (Davide-NYC) - Wednesday, 23 August 2006, 22:42 GMT
How are the buttons mapped exactly?
A labeled image similar to the 'UI256.bmp' file with the keyboard buttons for each target's remote(s) would be very helpful.
Thanks, Davide-NYC
Comment by David Rothenberger (drothenberger) - Wednesday, 23 August 2006, 23:29 GMT
LEFT -> REW
RIGHT -> FF
UP -> VOL UP
DOWN -> VOL DOWN
KP PLUS -> ON
ENTER -> STOP
KP DIVIDE -> REC
SPACE -> MENU
KP PERIOD -> MODE

I think there may be a problem with the DIVIDE -> REC mapping. I'll look into that shortly.

Where is UI256.bmp?
Comment by David Rothenberger (drothenberger) - Thursday, 24 August 2006, 21:35 GMT
Updated for latest CVS HEAD. Fixed DIVIDE -> REC button mapping.
Comment by Davide (Davide-NYC) - Thursday, 24 August 2006, 22:27 GMT
UI256.bmp is in the sim directory after "make".
When the simulator is invoked with the --background switch it is ths bitmap (UI256.bmp) that is the background.

I do not understand your patch. My remotes (I have an H100 and an H300 remote) do not have the buttons in question.
I am attaching a diagram of all three iRiver remotes as well as an image of the three remote.
Assuming you are using the H100 remote, how are it's buttons mapped to the keyboard?
(Or am I missing something?)
Comment by David Rothenberger (drothenberger) - Thursday, 24 August 2006, 23:24 GMT
I only have a H100 remote. The attached image shows the mappings for the H100 and the H300 non-LCD remotes. The H300 non-LCD mappings are an educated guess. I really have no idea about the H300.

The patch attempts to map the sim keyboard to the buttons listed in firmware/export/button.h. For the H300 remote, I can't really tell how the buttons in the picture you provided map to the symbols defined in button.h.

However, I believe every BUTTON_RC_* symbol defined in button.h can be generated with this patch. The attached updated patch adds mappings for 3 and 9 to RC_BITRATE and RC_SOURCE and maps 4 and 6 to RC_LEFT and RC_RIGHT if RC_REW and RC_FF are not defined. (At the moment, there are not remotes that include both RC_LEFT/RIGHT and RC_REW/FF.)

Comment by David Rothenberger (drothenberger) - Thursday, 24 August 2006, 23:29 GMT
Oh, in case you missed it, the remote keys are only generated when Caps Lock is on. Otherwise, normal main-unit keys are generated.

Loading...