intercept DPAD, joystick events with IME. add option for "experimental" button detection mode that uses the IME. not all apps can detect these remapped buttons.
https://developer.android.com/guide/topics/text/creating-input-method#HardwareKeyEvents
https://developer.android.com/training/game-controllers/controller-input
- input methods can consume KeyEvent and MotionEvents even without explicit focus
- override onKeyDown, onKeyUp and onGenericMotionEvent
TODO
- [ ] see message in Discord server https://discord.com/channels/717499872219103263/717500452207591484/829428898097397791
Hi, I have already use IME, still can’t create Trigger for DPAD, but I can create Action for DPAD, what am I wrong? Or can’t do such thing?
https://user-images.githubusercontent.com/11863878/113746962-79f59600-9739-11eb-97a6-faba2eef7124.mp4
Sorry for not clarifying. I haven't implemented this issue yet and you can create a "key" action for the DPAD because Key Mapper uses a different method to detect buttons when you're creating an action. This method only works as long as you're in Key Mapper .
@sds100 With my gamepad, "Up Down Left Right key" are not work, the other keys are normal, Is progress going well?