Posts: 14
Joined: Jul 2016
Reputation:
0
I have a problem about that KeyEvent inherits from CJNIBase in /xbmc/platform/android/jni/KeyEvent.h, but not InputEvent. While in /frameworks/base/core/java/android/view/KwyEvent.java, KeyEvent inherits from InputEvent?The injectInputEvent(InputEvent ev, int mod);I want to put the keyevent into the InputEvent,This dose't work.Please help me?
Posts: 14
Joined: Jul 2016
Reputation:
0
Thankyou for your reply. When I make KeyEvent inherit from InputEvent and run the kodi ,I got the fatal information: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 4587. I dont't know what cause the fatal. I want to know if I want to send keyevent to android, from jni to call inputManager.injectInputEvent ,the idea is right? or have other way to realize it in kodi ?Thankyou again for your reply.
Posts: 5,952
Joined: Sep 2008
Reputation:
201
Koying
Retired Team-Kodi Member
Posts: 5,952
Show us some code, and please expose clearly what you are trying to achieve, i.e. what keypress are you trying to send from Kodi, to whom and why.