mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-17 14:21:08 +00:00
Don't send a bunch of duplicate controller packets if a button is being held down
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user