InfiniTimeOrg / InfiniTime

Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
GNU General Public License v3.0
2.64k stars 902 forks source link

Fix Stopwatch Side Button Behavior #2081

Open RageGamerBoi opened 1 week ago

RageGamerBoi commented 1 week ago

Verification

Introduce the issue

This issue relates to two problems related to side button behavior that can and should all be fixed together:

  1. The stopwatch is stopped by the side button but cannot be restarted with the side button.
  2. There is no way to exit the stopwatch and let it run in the background, as the back button stops the stopwatch no matter what.

Preferred solution

  1. Allow the stopwatch to be started by the side button. It might be better to use a double click gesture, which can also be used for the lap function once the stopwatch is started.
  2. Allow the ‘press and hold’ side button gesture to exit the stopwatch without stopping it, so you can check the time, etc.

Version

v1.14.0

mark9064 commented 1 week ago

Another issue that the stopwatch stops when you release the button rather than press it. But this would require input events to be refactored to allow apps to process button up/down themselves