From ea80c6e3efa90eccd73e5a7b6dbd5a681829a528 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 6 May 2016 13:18:42 -0400 Subject: [PATCH] Don't request filtering on input events. It needlessly increases CPU usage. --- main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index de1e3df..9e9e567 100644 --- a/main.cpp +++ b/main.cpp @@ -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) {