Remove legacy InputState.

This commit is contained in:
Unknown W. Brackets committed 2017-03-14 22:07:07 -07:00
1 parent e1bc26e67a
commit 9e390510df
60 files changed
+140 -195

No files matched your search

+1 -6
View File
@@ -37,14 +37,9 @@ static std::mutex inputMutex;
static std::condition_variable inputEndCond;
static bool focused = true;
extern InputState input_state;
inline static void ExecuteInputPoll() {
// Hm, we may hold the input_state lock for quite a while (time it takes to poll all devices)...
// If that becomes an issue, maybe should poll to a copy of inputstate and only hold the lock while
// copying that one to the real one?
if (host && (focused || !g_Config.bGamepadOnlyFocused)) {
host->PollControllers(input_state);
host->PollControllers();
}
}