mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2026-08-27 12:39:52 +00:00
Don't request filtering on input events. It needlessly increases CPU usage.
This commit is contained in:
@@ -38,8 +38,7 @@ void MoonlightInstance::OnConnectionStarted(uint32_t unused) {
|
|||||||
PostMessage(response);
|
PostMessage(response);
|
||||||
|
|
||||||
// Start receiving input events
|
// Start receiving input events
|
||||||
RequestInputEvents(PP_INPUTEVENT_CLASS_MOUSE);
|
RequestInputEvents(PP_INPUTEVENT_CLASS_KEYBOARD | PP_INPUTEVENT_CLASS_MOUSE | PP_INPUTEVENT_CLASS_WHEEL);
|
||||||
RequestFilteringInputEvents(PP_INPUTEVENT_CLASS_WHEEL | PP_INPUTEVENT_CLASS_KEYBOARD);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MoonlightInstance::OnConnectionStopped(uint32_t error) {
|
void MoonlightInstance::OnConnectionStopped(uint32_t error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user