Treat the keyboard and pads differently.

We basically never want two pads active at once, but keyboard is
different.  So, they need to be treated differently.

Fixes #1212.
This commit is contained in:
Unknown W. Brackets committed 2013-04-07 18:42:23 -07:00
1 parent 5427f20b90
commit dcd2c26214
7 files changed
+15 -9

No files matched your search

+8 -2
View File
@@ -130,9 +130,15 @@ void WindowsHost::SetDebugMode(bool mode)
void WindowsHost::PollControllers(InputState &input_state)
{
bool doPad = true;
for (auto iter = this->input.begin(); iter != this->input.end(); iter++)
if ((*iter)->UpdateState(input_state) == InputDevice::UPDATESTATE_SKIP_NEXT)
break;
{
auto device = *iter;
if (!doPad && device->IsPad())
continue;
if (device->UpdateState(input_state) == InputDevice::UPDATESTATE_SKIP_PAD)
doPad = false;
}
}
void WindowsHost::BootDone()