rust-mobile / android-activity

Glue for building Rust applications on Android with NativeActivity or GameActivity
238 stars 46 forks source link

Expose MotionEvent::action_button() state #138

Closed rib closed 11 months ago

rib commented 11 months ago

This exposes the button associated with a button press or release action.

The PR also includes a separate copy&paste fix for MotionEvent::action() that was spotted while adding action_button().

rib commented 11 months ago

Cc: @MarijnS95

Ideally would have waited for review from you but also want to get this 0.5 release done and this doesn't seem controversial.

MarijnS95 commented 11 months ago

Sure thing, especially when things happen after midnight :zzz:.