[App] Add winkey input driver last.

This commit is contained in:
gibbed 2019-08-03 20:47:39 -05:00
parent f2dac86b3f
commit 0ac83f99dc
1 changed files with 2 additions and 1 deletions

View File

@ -167,8 +167,9 @@ std::vector<std::unique_ptr<hid::InputDriver>> CreateInputDrivers(
} else {
Factory<hid::InputDriver, ui::Window*> factory;
#if XE_PLATFORM_WIN32
factory.Add("winkey", xe::hid::winkey::Create);
factory.Add("xinput", xe::hid::xinput::Create);
// WinKey input driver should always be the last input driver added!
factory.Add("winkey", xe::hid::winkey::Create);
#endif // XE_PLATFORM_WIN32
for (auto& driver : factory.CreateAll(cvars::hid, window)) {
if (XSUCCEEDED(driver->Setup())) {