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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  double click that button!
« previous next »
  • Print
Pages: [1] 2

Author Topic: double click that button!  (Read 7714 times)

Offline yegods

  • Member
  • *
  • Posts: 71
double click that button!
« on: August 13, 2007, 04:52:43 PM »
when researching a certain feature i wanted (Queue Album), i found that i needed a new type of button click to fit it into the WPS screen -- all the good ones were taken.  Double-Click seems very natural, and missing, so i implemented it.

here is the patch.  give it a try.  the patch is implemented for Ipod, and is not by default assigned to any buttons.  see my Queue Album patch for an example on how to assign to buttons.  it's also very simple to enable for other players.

Double Click:
http://www.rockbox.org/tracker/task/7555

Queue Album+
http://www.rockbox.org/tracker/task/7571

please post any relevant bug fixes or problems to those threads.

updated 8-22-07:
Double Click patch has been fixed and modified to allow click-clickhold functionality, and to set the desired double-click delay.  the delay is set under Settings-->General-->System-->Set Double-Click Delay
« Last Edit: August 22, 2007, 07:45:45 PM by yegods »
Logged

Offline yegods

  • Member
  • *
  • Posts: 71
Re: double click that button!
« Reply #1 on: August 15, 2007, 01:22:41 PM »
all i'm hearing are crickets for these features i've been uploading.  is it because no one else wants the features, or because you need me to upload my patched build?  just curious.
Logged

Offline DefineByte

  • Member
  • *
  • Posts: 104
Re: double click that button!
« Reply #2 on: August 15, 2007, 02:45:24 PM »
Personally I think double-clicking sounds like an excellent feature. I have no need for the queue albums patch though so I don't have much to say about it. :)
Logged

Offline elborak

  • Member
  • *
  • Posts: 177
Re: double click that button!
« Reply #3 on: August 15, 2007, 03:16:10 PM »
I didn't even look at the patch as I hate double clicking on a mouse and can only imagine it's worse on a handheld device. Personal taste issue.
Logged

Offline yegods

  • Member
  • *
  • Posts: 71
Re: double click that button!
« Reply #4 on: August 15, 2007, 04:00:13 PM »
i admit double-clicking is not the super-best solution, but if you think about the WPS, you'll see that it's got all the button combinations pretty much tied up.  i needed this functionality to be super easy to get at, since i'll be using it while driving mostly, so it had to be some sort of click on the WPS screen.

it actually works quite well with the ipod mounted.

thanks for the feedback though!
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: double click that button!
« Reply #5 on: August 15, 2007, 05:34:24 PM »
I see how this could be useful.  I tend to listen by album a lot of the time anyway, though.  So queuing the entire album of the currently playing track is not something I do very much.  I can definitely see how this would be nice for those times when I'm listening to a large, shuffled playlist.  I'll have to see whether or not it's worth my time to modify these patches for my Gigabeat, though.  Kudos on making a patch to provide the functionality that you want, though!
« Last Edit: August 15, 2007, 05:41:58 PM by Chronon »
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: double click that button!
« Reply #6 on: August 15, 2007, 05:38:34 PM »
There are already some functions on short then long press of a button. How does this patch interact with those?
Logged

Offline yegods

  • Member
  • *
  • Posts: 71
Re: double click that button!
« Reply #7 on: August 15, 2007, 05:48:49 PM »
i spent a long time making sure that all current button functionality works just like it used to.  long and short presses are mostly unaffected by the patch.  necessarily there will be a very small pause before single click actions occur... this is due to waiting for a potential double-click.  it's very small, and i can't even notice it.

modifying the patch to work with other players is very simple, as described in the patch text.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: double click that button!
« Reply #8 on: August 15, 2007, 06:30:45 PM »
How does a short-long press work then? Does double click base itself on two button releases?

And how long, exactly, is the delay?
Logged

Offline yegods

  • Member
  • *
  • Posts: 71
Re: double click that button!
« Reply #9 on: August 15, 2007, 07:21:00 PM »
Quote
How does a short-long press work then? Does double click base itself on two button releases?

when a button is held down, it resets the double-click time, so that a double click will only be registered with two short clicks.  and yes, the double click gets queued after the second release of the button.

Quote
And how long, exactly, is the delay?

currently it's 20 ticks, and that seems to be about right, though it could probably be shortened a bit.  i wanted to leave some room for slow-ish double-clicks.
Logged

Offline DefineByte

  • Member
  • *
  • Posts: 104
Re: double click that button!
« Reply #10 on: August 16, 2007, 04:38:50 AM »
Maybe you could make the double-click time configurable, like on the PC.
Logged

Offline yegods

  • Member
  • *
  • Posts: 71
Re: double click that button!
« Reply #11 on: August 16, 2007, 01:01:54 PM »
i was thinking about doing that... one thing i wondered is: are the global_settings available in the firmware code?  it seems like they shouldn't be.  how do people configure firmware things?

i did a little research, and found that the default delay time is typically between 300 and 400 ms.
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: double click that button!
« Reply #12 on: August 19, 2007, 10:31:48 AM »
global_settings isnt accessable from, firmware/ look at how the backlight timeouts are set ...
Logged


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

Offline yegods

  • Member
  • *
  • Posts: 71
Re: double click that button!
« Reply #13 on: August 20, 2007, 01:34:14 PM »
Quote
global_settings isnt accessable from, firmware/ look at how the backlight timeouts are set ...

thanks for the tip.  i'll look into that.
Logged

Offline Mr_Grinch

  • Member
  • *
  • Posts: 1
Re: double click that button!
« Reply #14 on: September 25, 2007, 05:11:11 AM »
Quote from: yegods on August 13, 2007, 04:52:43 PM
Double Click:
http://www.rockbox.org/tracker/task/7555

Queue Album+
http://www.rockbox.org/tracker/task/7571

please post any relevant bug fixes or problems to those threads.

updated 8-22-07:
Double Click patch has been fixed and modified to allow click-clickhold functionality, and to set the desired double-click delay.  the delay is set under Settings-->General-->System-->Set Double-Click Delay

This could be exactly what I'm looking for, I had my iriver stolen and purchased a second hand H320 from ebay. All seemed well but the Play button didn't work on the remote I got with it, so I figured the remote was bust. Not so, I tried my old one (which I knew worked) and same problem.

So I currently need to remap buttons (which should be fun being I've never really delved in to anything like this!) and your double click patch should help me get everything I want on to the remote.

Hopefully :)
Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  double click that button!
 

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

Page created in 0.109 seconds with 14 queries.