I have a NativeActivity-based application that wants to receive trackball events.
According to the (sketchy) documentation, I should be receiving these via the struct android_app
's onInputEvent()
callback, the same as I do for key and motion events. However, I'm not getting any. Looking at the tracing the event gets sent to the glue layer but is apparently consumed by the call to AInputQueue_preDispatchEvent()
in process_input()
, and so never gets delivered to my application.
Has anyone gotten trackball events working with NativeActivity, and if so, how?