Detecting continuous key presses with UIKeyCommand

前端 未结 4 1638
盖世英雄少女心
盖世英雄少女心 2021-02-01 22:58

Is it possible to get continuous key presses?

I\'m using keyCommands: to intercept the arrows keys being pressed on an external keyboard, but I only ge

4条回答
  •  無奈伤痛
    2021-02-01 23:53

    With iOS 13.4+ it is now possible. UIPress now has a UIKey member variable

    Refer to this official tutorial

提交回复
热议问题