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
| | |-+  Request: WPS Hotkey for Stoping Playback and going back a directory
« previous next »
  • Print
Pages: [1]

Author Topic: Request: WPS Hotkey for Stoping Playback and going back a directory  (Read 1704 times)

Offline BrianT

  • Member
  • *
  • Posts: 5
  • I like Pie
Request: WPS Hotkey for Stoping Playback and going back a directory
« on: July 09, 2011, 01:34:31 AM »
Hello, I have just "upgraded" from a sansa e200 to a sansa fuze v2. One of the things I noticed is that while pressing the "Home" Button on the WPS is that it goes to Playlists. On my e200 the Home Button stopped playback while on the WPS Screen. This is kind of what I was expecting on the sansa fuze, but no such luck. I found out that there is a feature under general settings>hotkey>wps hotkey that could change the behavior of the home button on the sansa fuze, but there was no option to stop playback while on the wps screen. I was really hoping that someone could add this feature. If so I would realllly appreciate it!

I'm running rockbox 3.9 on both my sansa e200 v1 and my sansa fuze v2.

Again I would really appreciate someone adding the ability to stop playback in the WPS screen with the hotkey option (aka home button).

Thanks in Advance.
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Request: WPS Hotkey for Stoping Playback and going back a directory
« Reply #1 on: July 09, 2011, 09:40:33 PM »
Is there something wrong with using "long play"?

If so, what?
(serious question, btw)


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

Offline BrianT

  • Member
  • *
  • Posts: 5
  • I like Pie
Re: Request: WPS Hotkey for Stoping Playback and going back a directory
« Reply #2 on: July 09, 2011, 10:44:23 PM »
Quote
Is there something wrong with using "long play"?

Well yes, and no. The problem is I guess, somewhat of a button preferance. You see on the e200 I got used to pressing the home button (actually power button I Guess some people call it) to stop my music. I was kind of thinking thinking this would be the same on my sansa, but it is not. I guess I would get used to it eventually, but I was just hoping it might possible to make this preferance of mine a user changeable option via the hotkey menu. If it is not possible, then could someone help me write a patch or at least tell me what I need to modify in the source to possibly get this to work. Thanks.
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Request: WPS Hotkey for Stoping Playback and going back a directory
« Reply #3 on: July 10, 2011, 02:13:01 AM »
Its certainly possible...as for will it happen, the answer is almost certainly no.

Hotkey is a means to provide additional functions to the WPS/File-Browser, a need that arises from crowded keymaps and/or lack of physical buttons, not a means to duplicate functions that already exist based on personal preference.

Editing the keymap is fairly trivial (depending of course, on your individual definition of trivial).
There isn't just a file you can edit on the device that sets the functions of the keys, it needs to be edited in the source files before the binary is compiled. You will need to set up a development environment to compile Rockbox to achieve this.
The wiki has many fine resources available to assist you in doing so.

The file you are looking for in particular is located in the Rockbox source at:

/rockbox/apps/keymaps/keymap-fuze.c

And (I'm writing this from memory, so...it may or may not be *absolutely* accurate) the part you'll want to edit is (or will look vaguely similar to ;) ):

Code: [Select]
(ACTION_WPS_STOP, BUTTON_UP|BUTTON_REPEAT, BUTTON_UP ),
(it should be located around line 50 of keymap-fuze.c)

which unless there are conflicts (which may well happen), you should be able to change to:

Code: [Select]
(ACTION_WPS_STOP, BUTTON_HOME|BUTTON_REPEAT, BUTTON_HOME ),

Hope this helps you achieve what you want to...



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

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Request: WPS Hotkey for Stoping Playback and going back a directory
« Reply #4 on: July 10, 2011, 08:11:58 AM »
Customisable buttons are no longer on the nodo list, however if they are to be implemented it would need to be in a consistent, well thought out, extensible format which requires a fair bit of planning and then work.  The chances of adding something like you ask are very slim, it needs to be done properly and not ad-hoc.

Your option for the time being is to edit the source and recompile, please feel free to ask for help doing that is you decide to so do.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  Request: WPS Hotkey for Stoping Playback and going back a directory
 

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

Page created in 0.052 seconds with 15 queries.