mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 14:30:27 +02:00
Remove PollControllers from host. Break out a WindowsInputManager from WindowsHost.
This commit is contained in:
1 parent
2f09d29698
commit
e71be8af2e
11 files changed
+90
-102
No files matched your search
@@ -20,6 +20,7 @@
|
||||
#include <atomic>
|
||||
|
||||
#include "Common/Input/InputState.h"
|
||||
#include "Common/System/System.h"
|
||||
#include "Common/Thread/ThreadUtil.h"
|
||||
#include "Core/Config.h"
|
||||
#include "Core/Host.h"
|
||||
@@ -31,7 +32,7 @@ static std::atomic_bool focused = ATOMIC_VAR_INIT(true);
|
||||
|
||||
inline static void ExecuteInputPoll() {
|
||||
if (host && (focused.load(std::memory_order_relaxed) || !g_Config.bGamepadOnlyFocused)) {
|
||||
host->PollControllers();
|
||||
System_Notify(SystemNotification::POLL_CONTROLLERS);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user