What triggers (or generates) KeyEvent.ACTION_MULTIPLE?

前端 未结 2 653
北海茫月
北海茫月 2021-02-13 23:47

The documentation for KeyEvent.ACTION_MULTIPLE says:

\"multiple duplicate key events have occurred in a row, or a complex string is being delivered. If

相关标签:
2条回答
  • 2021-02-14 00:02

    I'm not sure, but I would think that ACTION_MULTIPLE would probably be triggered by actual buttons on a blutooth keyboard for instance. I think that the reason you're just getting ACTION_UP and ACTION_DOWN is because those are the pre-defined KeyEvents for your headset controls. I hope this helps. :)

    0 讨论(0)
  • 2021-02-14 00:06

    Android's BaseMovementMethod includes code for handling ACTION_MULTIPLE so presumably the event is generated for key auto-repeat when the user holds down an arrow key.

    0 讨论(0)
提交回复
热议问题