diff options
author | 2023-02-24 19:31:12 +1100 | |
---|---|---|
committer | 2023-02-24 19:31:12 +1100 | |
commit | 65aeb63a2a1f4f65a6fa0dedabba1b852a189f96 (patch) | |
tree | 42a56bcf4d22b624dbb117946e376981e691a5f0 /src/osd/modules/input/input_none.cpp | |
parent | 3b5dbeea3bad50ad04c966de4afffb864a9856d0 (diff) |
Update accumulating relative inputs exactly once per frame.
This fixes "amplification" effects that would happen if the frame rate
rose above 100 Hz (whether by unthrottling or otherwise).
Synchronise with wall clock any time inputs are read. Not doing this
has weird effects on relative inputs with frame skipping and contributes
to unresponsiveness of menus.
Reduce visual latency for mouse movement on menus when paused or
skipping frames. The rest of the code changes to menus won't provide
benefits until draw can happen after event handling.
Diffstat (limited to 'src/osd/modules/input/input_none.cpp')
-rw-r--r-- | src/osd/modules/input/input_none.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/osd/modules/input/input_none.cpp b/src/osd/modules/input/input_none.cpp index 3110f6a3e5d..96c3f116868 100644 --- a/src/osd/modules/input/input_none.cpp +++ b/src/osd/modules/input/input_none.cpp @@ -19,7 +19,7 @@ public: keyboard_input_none() : osd_module(OSD_KEYBOARDINPUT_PROVIDER, "none") { } int init(osd_interface &osd, const osd_options &options) override { return 0; } void input_init(running_machine &machine) override { } - void poll_if_necessary() override { } + void poll_if_necessary(bool relative_reset) override { } }; @@ -29,7 +29,7 @@ public: mouse_input_none() : osd_module(OSD_MOUSEINPUT_PROVIDER, "none") { } int init(osd_interface &osd, const osd_options &options) override { return 0; } void input_init(running_machine &machine) override { } - void poll_if_necessary() override { } + void poll_if_necessary(bool relative_reset) override { } }; @@ -39,7 +39,7 @@ public: lightgun_input_none() : osd_module(OSD_LIGHTGUNINPUT_PROVIDER, "none") { } int init(osd_interface &osd, const osd_options &options) override { return 0; } void input_init(running_machine &machine) override { } - void poll_if_necessary() override { } + void poll_if_necessary(bool relative_reset) override { } }; @@ -49,7 +49,7 @@ public: joystick_input_none() : osd_module(OSD_JOYSTICKINPUT_PROVIDER, "none") { } int init(osd_interface &osd, const osd_options &options) override { return 0; } void input_init(running_machine &machine) override { } - void poll_if_necessary() override { } + void poll_if_necessary(bool relative_reset) override { } }; } // anonymous namesapce |