mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2026-10-20 15:37:01 +00:00
Don't request filtering on input events. It needlessly increases CPU usage.
This commit is contained in:
1 parent
4e7560295f
commit
ea80c6e3ef
1 file changed
+1
-2
@@ -38,8 +38,7 @@ void MoonlightInstance::OnConnectionStarted(uint32_t unused) {
|
||||
PostMessage(response);
|
||||
|
||||
// Start receiving input events
|
||||
RequestInputEvents(PP_INPUTEVENT_CLASS_MOUSE);
|
||||
RequestFilteringInputEvents(PP_INPUTEVENT_CLASS_WHEEL | PP_INPUTEVENT_CLASS_KEYBOARD);
|
||||
RequestInputEvents(PP_INPUTEVENT_CLASS_KEYBOARD | PP_INPUTEVENT_CLASS_MOUSE | PP_INPUTEVENT_CLASS_WHEEL);
|
||||
}
|
||||
|
||||
void MoonlightInstance::OnConnectionStopped(uint32_t error) {
|
||||
|
||||
Reference in new issue
Block a user