Exposing physical button actions

Comments

1 comment

  • Avatar
    timklge

    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. 

     

    0
    Comment actions Permalink

Please sign in to leave a comment.