Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  Mapping a button
« previous next »
  • Print
Pages: [1]

Author Topic: Mapping a button  (Read 2609 times)

Offline Visti

  • Member
  • *
  • Posts: 14
Mapping a button
« on: January 26, 2009, 09:33:31 AM »
Hi guys, I have a c240 with a broken "volume down" button. Is there any way I can remap another button, such as the "record" to that function?


Cheers!
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Mapping a button
« Reply #1 on: January 26, 2009, 09:58:43 AM »
Yes, you can, but you need to edit the code and then compile.

You need to have a development environment set up, then edit the appropriate keymap in:

apps/keymaps/keymap-c200.c
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Mapping a button
« Reply #2 on: January 26, 2009, 07:15:51 PM »
the easier way to do it would be to change firmware/target/arm/sandisk/sansa-e200/button-e200.c to return BUTTON_DOWN instead of BUTTON_REC (around line 255) that will swap the buttons in the entire rockbox.. no other changes willl be needed
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline kugel.

  • Developer
  • Member
  • *
  • Posts: 271
Re: Mapping a button
« Reply #3 on: January 26, 2009, 07:33:39 PM »
If his volume down button is broken he should rather return BUTTON_VOL_DOWN.

But yes, that would be the easiest way to do it (the usual rec button functionality is of course lost).
Logged
 

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Mapping a button
« Reply #4 on: January 27, 2009, 04:00:41 AM »
Ah yes, it didn't occur to change the whole lot in one go.  Good plan!
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline Febs

  • Member
  • *
  • Posts: 2701
Re: Mapping a button
« Reply #5 on: January 27, 2009, 01:56:12 PM »
Of course, he could also just change the volume through Settings --> Sound Settings --> Volume.
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way
Please do not send me support questions via PM.

Offline Visti

  • Member
  • *
  • Posts: 14
Re: Mapping a button
« Reply #6 on: January 28, 2009, 01:49:00 PM »
Quote from: Febs on January 27, 2009, 01:56:12 PM
Of course, he could also just change the volume through Settings --> Sound Settings --> Volume.

Yeah, I've been doing this, but its just so annoying to accidentally turn the volume a tiny bit too loud and then try to navigate the menu system with hurty ears.

I will try changing the value there, but I take it I have to recompile, though? This is something I have no experience with, as I've only ever used Python.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  Mapping a button
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.093 seconds with 15 queries.