mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 07:50:28 +02:00
Windows: Check for devices on Windows events only.
A user reported stuttering after the periodic checks, and devices failing until unplug/replug. Presumably, this is caused by poor drivers reacting badly to periodic DirectInput queries, so less queries should help.
This commit is contained in:
1 parent
5ea935f4bf
commit
d30d75ab38
3 files changed
+14
-2
No files matched your search
@@ -54,6 +54,7 @@
|
||||
#include "Windows/GEDebugger/GEDebugger.h"
|
||||
|
||||
#include "Windows/main.h"
|
||||
#include "Windows/DinputDevice.h"
|
||||
#include "Windows/EmuThread.h"
|
||||
#include "Windows/resource.h"
|
||||
|
||||
@@ -814,6 +815,10 @@ namespace MainWindow
|
||||
case WM_CHAR:
|
||||
return WindowsRawInput::ProcessChar(hWnd, wParam, lParam);
|
||||
|
||||
case WM_DEVICECHANGE:
|
||||
DinputDevice::CheckDevices();
|
||||
return DefWindowProc(hWnd, message, wParam, lParam);
|
||||
|
||||
case WM_VERYSLEEPY_MSG:
|
||||
switch (wParam) {
|
||||
case VERYSLEEPY_WPARAM_SUPPORTED:
|
||||
|
||||
Reference in new issue
Block a user