mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 16:53:40 +01:00
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:
1 parent
5427f20b90
commit
dcd2c26214
7 files changed
+15
-9
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user