mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Remove remaining input_state mutexing.
This commit is contained in:
parent
14b1dac826
commit
e1bc26e67a
2 changed files with 1 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue