mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 19:42:45 +00:00
Don't send a bunch of duplicate controller packets if a button is being held down
This commit is contained in:
parent
9fcd641143
commit
e3a477a243
@ -608,7 +608,11 @@ public class ControllerHandler {
|
|||||||
emulatingButtonFlags |= ControllerHandler.EMULATING_SPECIAL;
|
emulatingButtonFlags |= ControllerHandler.EMULATING_SPECIAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Send a new input packet if this is the first instance of a button down event
|
||||||
|
// or anytime if we're emulating a button
|
||||||
|
if (event.getRepeatCount() == 0 || emulatingButtonFlags != 0) {
|
||||||
sendControllerInputPacket();
|
sendControllerInputPacket();
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user