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
| |-+  Hardware
| | |-+  Fuze+ Make volume keys work while in Hold mode? [SOLVED]
« previous next »
  • Print
Pages: [1]

Author Topic: Fuze+ Make volume keys work while in Hold mode? [SOLVED]  (Read 1292 times)

Offline lee321987

  • Member
  • *
  • Posts: 76
Fuze+ Make volume keys work while in Hold mode? [SOLVED]
« on: May 02, 2013, 06:53:09 PM »
Would it be possible to make the volume keys operational when the Fuze+ is in Hold mode?
How about to change the behavior of those keys _only_ while in Hold mode?

EXAMPLE: when hold mode is activated VOLUME-UP key becomes a play/pause key, and VOLUME-DOWN key becomes a rewind key?

I understand that if it's possible I would have to do some programming in the source code.
« Last Edit: February 21, 2014, 03:45:42 PM by lee321987 »
Logged
What are you waiting for? You're faster than this. Don't think you are... know you are. -- The Matrix

Offline Falco98

  • Member
  • *
  • Posts: 153
Re: Fuze+ Make volume keys work while in Hold mode?
« Reply #1 on: May 14, 2013, 02:59:04 PM »
Hold mode on the Fuze+ doesn't actually disable button presses in a hardware sense (since pressing anything causes the screen to turn back on and advise you that the buttons are locked), so my best guess is that the buttons are just re-mapped to not do much when hold is activated, and therefore it should be possible for you to code a patch re-mapping the side volume buttons to do whatever you want when hold is engaged.
Logged

Offline pamaury

  • Developer
  • Member
  • *
  • Posts: 508
Re: Fuze+ Make volume keys work while in Hold mode?
« Reply #2 on: February 19, 2014, 01:12:12 PM »
This thread is a bit dead but I want to say I have a patch here:
http://gerrit.rockbox.org/r/#/c/760/
Feel free to try it.
Logged
Please don't PM me, use our IRC channel instead.

Offline lee321987

  • Member
  • *
  • Posts: 76
Re: Fuze+ Make volume keys work while in Hold mode?
« Reply #3 on: February 20, 2014, 05:05:14 PM »
THANKS A TON, PAMAURY!

If anyone wants to change the action of the volume buttons (while in Hold mode) to 'play/pause' and 'seek-back/skip-back', after applying pamaury's patch, in 'apps/keymaps/keymap-fuzeplus.c' there is a struct called 'button_context_wps_locked' on line 102.  Change it to this:

Code: [Select]
static const struct button_mapping button_context_wps_locked[]  = {
    { ACTION_WPS_PLAY,                  BUTTON_VOL_UP,                     BUTTON_NONE },
    { ACTION_WPS_SKIPPREV,              BUTTON_VOL_DOWN|BUTTON_REL,        BUTTON_VOL_DOWN },
    { ACTION_WPS_SEEKBACK,              BUTTON_VOL_DOWN|BUTTON_REPEAT,     BUTTON_NONE },
    { ACTION_WPS_STOPSEEK,              BUTTON_VOL_DOWN|BUTTON_REL,        BUTTON_VOL_DOWN|BUTTON_REPEAT },

    LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD)
Logged
What are you waiting for? You're faster than this. Don't think you are... know you are. -- The Matrix

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Fuze+ Make volume keys work while in Hold mode? [SOLVED]
 

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

Page created in 0.073 seconds with 15 queries.