mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-03 06:39:39 +00:00
fixrepeat
This commit is contained in:
parent
521f2fe994
commit
8fb01922a3
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ send_keycode(struct controller *controller, enum android_keycode keycode,
|
||||||
msg.type = CONTROL_MSG_TYPE_INJECT_KEYCODE;
|
msg.type = CONTROL_MSG_TYPE_INJECT_KEYCODE;
|
||||||
msg.inject_keycode.keycode = keycode;
|
msg.inject_keycode.keycode = keycode;
|
||||||
msg.inject_keycode.metastate = 0;
|
msg.inject_keycode.metastate = 0;
|
||||||
|
msg.inject_keycode.repeat = 0;
|
||||||
|
|
||||||
if (actions & ACTION_DOWN) {
|
if (actions & ACTION_DOWN) {
|
||||||
msg.inject_keycode.action = AKEY_EVENT_ACTION_DOWN;
|
msg.inject_keycode.action = AKEY_EVENT_ACTION_DOWN;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue