KeyMapper icon indicating copy to clipboard operation
KeyMapper copied to clipboard

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.

Open sds100 opened this issue 5 years ago • 3 comments

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

sds100 avatar Oct 19 '20 08:10 sds100

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

tiandongxv avatar Apr 06 '21 16:04 tiandongxv

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 avatar Apr 06 '21 17:04 sds100

image @sds100 With my gamepad, "Up Down Left Right key" are not work, the other keys are normal, Is progress going well?

hxse avatar Oct 23 '23 06:10 hxse