[HID] Change order to xinput, sdl, winkey
This commit is contained in:
@@ -188,10 +188,12 @@ std::vector<std::unique_ptr<hid::InputDriver>> CreateInputDrivers(
|
|||||||
Factory<hid::InputDriver, ui::Window*> factory;
|
Factory<hid::InputDriver, ui::Window*> factory;
|
||||||
#if XE_PLATFORM_WIN32
|
#if XE_PLATFORM_WIN32
|
||||||
factory.Add("xinput", xe::hid::xinput::Create);
|
factory.Add("xinput", xe::hid::xinput::Create);
|
||||||
|
#endif // XE_PLATFORM_WIN32
|
||||||
|
factory.Add("sdl", xe::hid::sdl::Create);
|
||||||
|
#if XE_PLATFORM_WIN32
|
||||||
// WinKey input driver should always be the last input driver added!
|
// WinKey input driver should always be the last input driver added!
|
||||||
factory.Add("winkey", xe::hid::winkey::Create);
|
factory.Add("winkey", xe::hid::winkey::Create);
|
||||||
#endif // XE_PLATFORM_WIN32
|
#endif // XE_PLATFORM_WIN32
|
||||||
factory.Add("sdl", xe::hid::sdl::Create);
|
|
||||||
for (auto& driver : factory.CreateAll(cvars::hid, window)) {
|
for (auto& driver : factory.CreateAll(cvars::hid, window)) {
|
||||||
if (XSUCCEEDED(driver->Setup())) {
|
if (XSUCCEEDED(driver->Setup())) {
|
||||||
drivers.emplace_back(std::move(driver));
|
drivers.emplace_back(std::move(driver));
|
||||||
|
|||||||
Reference in New Issue
Block a user