Repository navigation
ui: lock joystick with a Menu double-click - #3931
Merged
Merged
Conversation
Member
|
Nice. However, I don't think the lock state should be persisted. Should just be a transient bool held by the UITask. |
Contributor
Author
|
Thanks, done. The lock is now just a bool in UITask, so a reboot clears it. I removed the prefs, CLI and docs changes and retested on my L1 Pro. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I carry a Wio Tracker L1 Pro in my pocket and the joystick gets pressed all the time. Every bump turns the screen on for 15 sec, which wastes battery, and sometimes a second press turns BLE off, sends an advert or toggles GPS, and my phone loses the radio. #2224 had the same idea but doesn't apply anymore after the UI move.
Nothing changes by default: the lock is off until you use it, and Menu double-click didn't do anything on joystick boards before. Double-click Menu to lock. While locked, the joystick is ignored and doesn't turn the screen on, and a lock icon shows in the title bar. To unlock, double-click Menu and then press the joystick within 3 sec. The lock stays on when the screen turns off, and a reboot clears it. A long press in the first 8 sec still goes to CLI rescue. Menu still turns the screen on, so you can check battery, unread count or the BLE pin without unlocking (pages can't be changed while locked).
Tested on an L1 Pro. Also builds for L1 USB, L1 eink and T114.