Some work towards better control handling, includes stickyfix from native

This commit is contained in:
Henrik Rydgard committed 2013-03-30 23:55:28 +01:00
1 parent 33abcdafd6
commit afa21588d7
15 files changed
+49 -31

No files matched your search

+2 -2
View File
@@ -129,10 +129,10 @@ void WindowsHost::SetDebugMode(bool mode)
}
void WindowsHost::BeginFrame()
void WindowsHost::PollControllers(InputState &input_state)
{
for (auto iter = this->input.begin(); iter != this->input.end(); iter++)
if ((*iter)->UpdateState() == 0)
if ((*iter)->UpdateState(input_state) == 0)
break; // *iter is std::shared_ptr, **iter is InputDevice
}