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
| | |-+  Long right for track skip, short for skip length (editing source)
« previous next »
  • Print
Pages: [1]

Author Topic: Long right for track skip, short for skip length (editing source)  (Read 1461 times)

Offline jamus28

  • Member
  • *
  • Posts: 2
Long right for track skip, short for skip length (editing source)
« on: December 11, 2013, 06:17:02 PM »
I like rockbox on my sansa Clip+, but this particular button layout isn't working for me at all. I've been playing with the source on my linux setup.
In settings, the skip length for a short click is customizable.
FF/Rewind can (long press) is only customizable as to the fastfoward speeds. Also, FF slows down to a stop near the end of track.


I would like a short click of the right button to skip 5 seconds, and a long press to skip tracks.
What's the best way to achieve my goal?
ACTION_WPS_SKIPNEXT will respond to my custom skip_length, but I need a separate command for the long press.

Thanks.
« Last Edit: December 11, 2013, 10:33:13 PM by jamus28 »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Long right for track skip, short for skip length (editing source)
« Reply #1 on: December 11, 2013, 09:08:32 PM »
Not sure if I fully understand, but:

Code: [Select]
 
     { ACTION_WPS_SEEKFWD,  BUTTON_RIGHT|BUTTON_REL, BUTTON_NONE },
     { ACTION_WPS_SKIPNEXT, BUTTON_RIGHT|BUTTON_REL,    BUTTON_RIGHT|BUTTON_REPEAT },

Logged

Offline jamus28

  • Member
  • *
  • Posts: 2
Re: Long right for track skip, short for skip length (editing source)
« Reply #2 on: December 11, 2013, 10:32:30 PM »
That's a good thought, but not quite what I had in mind. That would make the short press start a fastfoward. Except, I would like it to just skip 5 seconds ahead.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  Long right for track skip, short for skip length (editing source)
 

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

Page created in 0.062 seconds with 15 queries.