[App] Add winkey input driver last.
This commit is contained in:
@@ -167,8 +167,9 @@ std::vector<std::unique_ptr<hid::InputDriver>> CreateInputDrivers(
|
|||||||
} else {
|
} else {
|
||||||
Factory<hid::InputDriver, ui::Window*> factory;
|
Factory<hid::InputDriver, ui::Window*> factory;
|
||||||
#if XE_PLATFORM_WIN32
|
#if XE_PLATFORM_WIN32
|
||||||
factory.Add("winkey", xe::hid::winkey::Create);
|
|
||||||
factory.Add("xinput", xe::hid::xinput::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
|
#endif // XE_PLATFORM_WIN32
|
||||||
for (auto& driver : factory.CreateAll(cvars::hid, window)) {
|
for (auto& driver : factory.CreateAll(cvars::hid, window)) {
|
||||||
if (XSUCCEEDED(driver->Setup())) {
|
if (XSUCCEEDED(driver->Setup())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user