diff options
author | 2023-02-23 02:06:28 +1100 | |
---|---|---|
committer | 2023-02-23 02:06:28 +1100 | |
commit | a72c02133fe08d4b2d8f420eec0814bb595ca7db (patch) | |
tree | 8b2bd0411e103a714e7764d6494ea85eb27859db /src/osd/sdl/osdsdl.cpp | |
parent | cf4310a1e73ddd253e0d1ea49414a475f3c8bb50 (diff) |
osd: Don't pump events when reading inputs.
This was a drain on performance. If anything is trying to poll inputs
in a loop, it needs to call input_update() to ensure it gets up-to-date
state.
Diffstat (limited to 'src/osd/sdl/osdsdl.cpp')
-rw-r--r-- | src/osd/sdl/osdsdl.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/osd/sdl/osdsdl.cpp b/src/osd/sdl/osdsdl.cpp index 3a6fdda3052..b7b71502fbb 100644 --- a/src/osd/sdl/osdsdl.cpp +++ b/src/osd/sdl/osdsdl.cpp @@ -297,7 +297,7 @@ void sdl_osd_interface::init(running_machine &machine) void sdl_osd_interface::input_update() { process_events_buf(); - poll_inputs(); + poll_input_modules(); check_osd_inputs(); } @@ -421,15 +421,6 @@ void sdl_osd_interface::customize_input_type_list(std::vector<input_type_entry> } -void sdl_osd_interface::poll_inputs() -{ - m_keyboard_input->poll_if_necessary(); - m_mouse_input->poll_if_necessary(); - m_lightgun_input->poll_if_necessary(); - m_joystick_input->poll_if_necessary(); -} - - void sdl_osd_interface::release_keys() { auto const keybd = dynamic_cast<input_module_base *>(m_keyboard_input); |