GCPadNew: Added option to disable input when Dolphin window isn't active. Some other minor fixes/cleanups.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5290 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Jordan Woyak committed 2010-04-08 03:33:16 +00:00
1 parent eada74b74e
commit b0e8a67cf2
8 files changed
+130 -56

No files matched your search

@@ -189,8 +189,11 @@ bool KeyboardMouse::UpdateOutput()
m_current_state_out[i] ^= 1;
}
}
return ( kbinputs.size() == SendInput( (UINT)kbinputs.size(), &kbinputs[0], sizeof( kbinputs[0] ) ) );
if ( kbinputs.size() )
return ( kbinputs.size() == SendInput( (UINT)kbinputs.size(), &kbinputs[0], sizeof( kbinputs[0] ) ) );
else
return true;
}
std::string KeyboardMouse::GetName() const