Page 1 of 1

Run action on OTG key pressed

Posted: 06 Aug 2013 12:51
by Kuleszka
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.

Re: Run action on OTG key pressed

Posted: 06 Aug 2013 16:45
by Martin
Hi,

Sorry, intercepting keyboard keys is currently not supported.

Regards,
Martin

Re: Run action on OTG key pressed

Posted: 06 Aug 2013 17:02
by Kuleszka
Will it ever be?

Re: Run action on OTG key pressed

Posted: 06 Aug 2013 18:48
by Martin
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.