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
| | |-+  Delay or "double push" button to lock / unlock?
« previous next »
  • Print
Pages: [1]

Author Topic: Delay or "double push" button to lock / unlock?  (Read 943 times)

Offline mowing-parapet

  • Member
  • *
  • Posts: 7
Delay or "double push" button to lock / unlock?
« on: April 06, 2019, 08:27:03 AM »
I have an AGPTEK rocker (I just installed RB, it's great!).  The on/off button functions as key lock in rockbox.  I can see I'm going to be accidentally unlocking it, because it only takes one push to unlock.

What I think I'd like it to do is to only unlock when pushed twice -- or perhaps unlock only after holding the button down for a while.  Actually knowing me I probably need to have it insist on something tapped out in morse code to stop me accidentally unlocking it.

Is there already any feature along these lines?  I haven't been able to find one here / in the manual / browsing the settings.

If not, any pointers to the right area of the code to modify would be appreciated.
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 729
Re: Delay or "double push" button to lock / unlock?
« Reply #1 on: April 06, 2019, 10:07:09 AM »
There really isn't functionality built-in to determine a double press of the same button.
The way to do it would be to make it dependent on two buttons like power and select button or something along those lines.
you need to compile your own build to change keymaps
see:
https://www.rockbox.org/wiki/SimpleGuideToCompiling
https://www.rockbox.org/wiki/LinuxSimpleGuideToCompiling
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  Delay or "double push" button to lock / unlock?
 

  • SMF 2.0.18 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.074 seconds with 18 queries.