mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 00:26:56 +00:00
Don't request filtering on input events. It needlessly increases CPU usage.
This commit is contained in:
parent
4e7560295f
commit
ea80c6e3ef
3
main.cpp
3
main.cpp
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user