diff options
author | 2023-01-12 17:59:59 +1100 | |
---|---|---|
committer | 2023-01-12 18:14:13 +1100 | |
commit | fee7047c16a04f816a0de031ec469f5b96be9f74 (patch) | |
tree | f9be050cbdb952d8315cc241648e5ddc8422b247 /src/osd/modules/input/input_sdlcommon.cpp | |
parent | 9e8064c85eb420e61df7ba56f197877680e642c6 (diff) |
-osd: Better XInput and SDL game controller input enhancements:
* Added initial support for XInput controller subtypes, starting with
driving, arcade and flight controllers.
* Check XInput capabilities to ignore buttons and hats that aren't
present.
* Added preliminary SDL Game Controller joystick provider. Reconnection
and mixed Game Controller/Joystick devices are unsupported.
* Show the input token for the highlighted control on input device
menus.
-ui: Allow menus to set required space above and below menu when metrics
change. Fixes the initial bad layout on the system selecton menu, or
bad layout after resizing windows.
Diffstat (limited to 'src/osd/modules/input/input_sdlcommon.cpp')
-rw-r--r-- | src/osd/modules/input/input_sdlcommon.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/osd/modules/input/input_sdlcommon.cpp b/src/osd/modules/input/input_sdlcommon.cpp index f0d8a8632f6..7fd13ce2b8f 100644 --- a/src/osd/modules/input/input_sdlcommon.cpp +++ b/src/osd/modules/input/input_sdlcommon.cpp @@ -71,10 +71,10 @@ void sdl_event_manager::process_events(running_machine &machine) auto subscribers = m_subscription_index.equal_range(sdlevent.type); // Dispatch the events - std::for_each(subscribers.first, subscribers.second, [&sdlevent](auto sub) - { - sub.second->handle_event(sdlevent); - }); + std::for_each( + subscribers.first, + subscribers.second, + [&sdlevent] (auto sub) { sub.second->handle_event(sdlevent); }); } } |