Hello.
Is ther a way that after connecting USB keyboard/gamepad and pressing buttons on them ther will be actions trigered?
I found here keycodes http://developer.android.com/reference/ ... Event.html
but I don't know how to assign them to specific actions.
Run action on OTG key pressed
Moderator: Martin
Re: Run action on OTG key pressed
Hi,
Sorry, intercepting keyboard keys is currently not supported.
Regards,
Martin
Sorry, intercepting keyboard keys is currently not supported.
Regards,
Martin
Re: Run action on OTG key pressed
I doubt that intercepting keystrokes in the background is possible using official API and most probably requires root (if it's possible at all).
I added it to my todo list to check the feasibility but this will take some time.
I added it to my todo list to check the feasibility but this will take some time.