[App] Add winkey input driver last.
This commit is contained in:
parent
f2dac86b3f
commit
0ac83f99dc
|
@ -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())) {
|
||||
|
|
Loading…
Reference in New Issue