Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#4905 - remote buttons for simulator

Attached to Project: Rockbox
Opened by David Rothenberger (drothenberger) - Friday, 24 March 2006, 06:51 GMT+1
Task Type Patches
Category Simulator
Status Unconfirmed
Assigned To No-one
Player type All players
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 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

Comment by David Rothenberger (drothenberger) - Friday, 24 March 2006, 18:51 GMT+1
I updated the patch to apply cleanly to latest CVS.
Comment by David Rothenberger (drothenberger) - Friday, 21 July 2006, 04:14 GMT+1
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, 22:44 GMT+1
Updated the patch for CVS HEAD. Compiles on all targets and sim targets.
Comment by David Rothenberger (drothenberger) - Tuesday, 15 August 2006, 00:35 GMT+1
Updated the patch for CVS HEAD. Compiles on all targets and sim targets.
Comment by Davide (Davide-NYC) - Thursday, 24 August 2006, 00:42 GMT+1
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) - Thursday, 24 August 2006, 01:29 GMT+1
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, 23:35 GMT+1
Updated for latest CVS HEAD. Fixed DIVIDE -> REC button mapping.
Comment by Davide (Davide-NYC) - Friday, 25 August 2006, 00:27 GMT+1
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) - Friday, 25 August 2006, 01:24 GMT+1
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) - Friday, 25 August 2006, 01:29 GMT+1
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...