Exposing physical button actions
Hi,
This may have been asked in the past already but I cannot find it on github or this forum. It would be awesome if the physical buttons would be exposed so you can use the long press of the top buttons to perform an action while riding. Or is there a way to get these button presses? It looks like a simple addition to the extension module.
-
If your activity is on screen, you will receive normal key events with keycodes 259 - 263 for the buttons.
I am not aware of a way to observe the button events in an extension when the ride app is on screen though. I agree it would be a great addition to the SDK. There are quite a few use cases for this I think, mainly allowing users to zoom in and out of custom datafields, as done by the native elevation profile datafield. Enabling extensions to alter the behaviour of the bottom left button (triggering a zoom action on the datafield instead of a lap) would also be nice.
Please sign in to leave a comment.
Comments
1 comment