Merge pull request #1577 from shygoo/input-require-focus
[N-Rage] Ignore input if main window isn't focused
This commit is contained in:
commit
c85054f0c0
|
@ -539,7 +539,7 @@ EXPORT void CALL GetKeys(int Control, BUTTONS * Keys )
|
||||||
#ifdef ENABLE_RAWPAK_DEBUG
|
#ifdef ENABLE_RAWPAK_DEBUG
|
||||||
DebugWriteA("CALLED: GetKeys\n");
|
DebugWriteA("CALLED: GetKeys\n");
|
||||||
#endif
|
#endif
|
||||||
if( g_bConfiguring )
|
if( g_bConfiguring || GetForegroundWindow() != g_strEmuInfo.hMainWindow)
|
||||||
Keys->Value = 0;
|
Keys->Value = 0;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue