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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  sansa e200: using the recording button as a lock/unlock
« previous next »
  • Print
Pages: [1]

Author Topic: sansa e200: using the recording button as a lock/unlock  (Read 3073 times)

Offline tata668

  • Member
  • *
  • Posts: 12
sansa e200: using the recording button as a lock/unlock
« on: April 03, 2008, 06:40:10 PM »
Would that be possible? To map a long press on the recording button to "lock/unlock" when playing a song?

I'm new to RockBox and I love it! The only thing that bugs me with the sansa e270 is the lock button that is hard to use when the player is in your pocket. If it was possible to long press on the recording button to lock/unlock, that would be fantastic! The only thing I wouldn't lock then is the scroll wheel for the volume.

Thanks to everyone involved in RockBox.

Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: sansa e200: using the recording button as a lock/unlock
« Reply #1 on: April 03, 2008, 06:54:51 PM »
It'd take some effort, but you could probably change the code to do that.  At least I don't think theres anything special about the hold switch.
Logged

Offline tata668

  • Member
  • *
  • Posts: 12
Re: sansa e200: using the recording button as a lock/unlock
« Reply #2 on: April 03, 2008, 09:16:01 PM »
Quote from: saratoga on April 03, 2008, 06:54:51 PM
It'd take some effort, but you could probably change the code to do that.  At least I don't think theres anything special about the hold switch.

I guess I have two options: taking assembly lessons or pray! ;-)

Thanks for the reply, it's interesting to see it's feasible.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: sansa e200: using the recording button as a lock/unlock
« Reply #3 on: April 03, 2008, 09:42:04 PM »
The button code (and almost all of rockbox) is actually written in c, so you don't need to know assembly.
Logged

Offline tata668

  • Member
  • *
  • Posts: 12
Re: sansa e200: using the recording button as a lock/unlock
« Reply #4 on: April 03, 2008, 09:49:22 PM »
I may take a look then..

But if a good developer is willing to do it for a donation, I would be interested. (sorry if this is agains the rules to ask that)
Logged

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: sansa e200: using the recording button as a lock/unlock
« Reply #5 on: April 04, 2008, 05:11:25 AM »
I don't know how easy it is to make targets that have a "hardware hold" (a switch) also have a "software hold". For some reason I thought that those are handled quite differently in the code but I could very well be wrong.

But there already is code to have such a software hold for the Archos targets because those don't have a switch. This hold is only active in the WPS and works fairly well. Maybe you can adapt some code from there.
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: sansa e200: using the recording button as a lock/unlock
« Reply #6 on: April 09, 2008, 11:35:50 PM »
yep, just enable the software hold lock code and set up a key for it... 10min work.. and no, this wont be considered for svn
Logged


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

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  sansa e200: using the recording button as a lock/unlock
 

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

Page created in 0.081 seconds with 15 queries.