Remove remaining input_state mutexing.

This commit is contained in:
Unknown W. Brackets 2017-03-14 21:43:10 -07:00
parent 14b1dac826
commit e1bc26e67a
2 changed files with 1 additions and 6 deletions

View file

@ -43,7 +43,6 @@ 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?
std::lock_guard<std::mutex> guard(input_state.lock);
if (host && (focused || !g_Config.bGamepadOnlyFocused)) {
host->PollControllers(input_state);
}

View file

@ -253,11 +253,7 @@ static GraphicsContext *graphicsContext;
- (void)glkView:(GLKView *)view drawInRect:(CGRect)rect
{
{
std::lock_guard<std::mutex> guard(input_state.lock);
NativeUpdate(input_state);
}
NativeUpdate(input_state);
NativeRender(graphicsContext);
time_update();
}