diff --git a/desmume/src/frontend/windows/inputdx.cpp b/desmume/src/frontend/windows/inputdx.cpp index 967a88ea8..d4c3e265d 100755 --- a/desmume/src/frontend/windows/inputdx.cpp +++ b/desmume/src/frontend/windows/inputdx.cpp @@ -2716,7 +2716,7 @@ static void RunAntipodalRestriction(const buttonstruct& pad); // and updates input-related state that needs to update even while paused. void input_acquire() { - const bool willAcceptInput = ( (MainWindow->getHWnd() == GetForegroundWindow()) || allowBackgroundInput ); + const bool willAcceptInput = ( allowBackgroundInput || (MainWindow->getHWnd() == GetForegroundWindow()) ); u32 oldInput = joypads[0]; S9xWinScanJoypads(willAcceptInput); diff --git a/desmume/src/frontend/windows/main.cpp b/desmume/src/frontend/windows/main.cpp index ff5afc153..89c7f9f26 100755 --- a/desmume/src/frontend/windows/main.cpp +++ b/desmume/src/frontend/windows/main.cpp @@ -599,7 +599,7 @@ static void InputTimer() const int nloops = (JOYSTICK) ? 16 : 1; const HWND mainWindow = MainWindow->getHWnd(); - const bool willAcceptInput = ( (mainWindow == GetForegroundWindow()) || allowBackgroundInput ); + const bool willAcceptInput = ( allowBackgroundInput || (mainWindow == GetForegroundWindow()) ); for (int j = 0; j < nloops; j++) {