diff options
author | 2021-07-29 15:22:51 +1000 | |
---|---|---|
committer | 2021-07-29 15:22:51 +1000 | |
commit | 23bd2ecf6a467dbe4ef423bbbcd11d925fd9b12f (patch) | |
tree | 588dab0661ae554b76e595e7798a97de5c8b6dc9 /src/osd/modules/input/input_none.cpp | |
parent | db1ddb7ceeb5b99e32c21c090341be83bdf1530f (diff) |
Slightly cleaned up OSD input modules.
Removed support for DirectInput 7 and earlier. It hasn't been tested in
years, and it's not relevant on any supported OS. DirectInput is
effectively finalised at version 8, and is unlikely to get an API update
in the future.
Use more string[_view] and fewer C strings, and tightened up scope of a
few things.
Diffstat (limited to 'src/osd/modules/input/input_none.cpp')
-rw-r--r-- | src/osd/modules/input/input_none.cpp | 44 |
1 files changed, 20 insertions, 24 deletions
diff --git a/src/osd/modules/input/input_none.cpp b/src/osd/modules/input/input_none.cpp index 0bad0fb1e7b..bbe19661ab6 100644 --- a/src/osd/modules/input/input_none.cpp +++ b/src/osd/modules/input/input_none.cpp @@ -12,13 +12,12 @@ class keyboard_input_none : public input_module { public: - keyboard_input_none() - : input_module(OSD_KEYBOARDINPUT_PROVIDER, "none") {} + keyboard_input_none() : input_module(OSD_KEYBOARDINPUT_PROVIDER, "none") { } int init(const osd_options &options) override { return 0; } - void poll_if_necessary(running_machine &machine) override {}; - void input_init(running_machine &machine) override {}; - void pause() override {}; - void resume() override {}; + void poll_if_necessary(running_machine &machine) override { } + void input_init(running_machine &machine) override { } + void pause() override { } + void resume() override { } }; MODULE_DEFINITION(KEYBOARD_NONE, keyboard_input_none) @@ -26,13 +25,12 @@ MODULE_DEFINITION(KEYBOARD_NONE, keyboard_input_none) class mouse_input_none : public input_module { public: - mouse_input_none() - : input_module(OSD_MOUSEINPUT_PROVIDER, "none") {} + mouse_input_none() : input_module(OSD_MOUSEINPUT_PROVIDER, "none") { } int init(const osd_options &options) override { return 0; } - void input_init(running_machine &machine) override {}; - void poll_if_necessary(running_machine &machine) override {}; - void pause() override {}; - void resume() override {}; + void input_init(running_machine &machine) override { } + void poll_if_necessary(running_machine &machine) override { } + void pause() override { } + void resume() override { } }; MODULE_DEFINITION(MOUSE_NONE, mouse_input_none) @@ -40,13 +38,12 @@ MODULE_DEFINITION(MOUSE_NONE, mouse_input_none) class lightgun_input_none : public input_module { public: - lightgun_input_none() - : input_module(OSD_LIGHTGUNINPUT_PROVIDER, "none") {} + lightgun_input_none() : input_module(OSD_LIGHTGUNINPUT_PROVIDER, "none") { } int init(const osd_options &options) override { return 0; } - void input_init(running_machine &machine) override {}; - void poll_if_necessary(running_machine &machine) override {}; - void pause() override {}; - void resume() override {}; + void input_init(running_machine &machine) override { } + void poll_if_necessary(running_machine &machine) override { } + void pause() override { } + void resume() override { } }; MODULE_DEFINITION(LIGHTGUN_NONE, lightgun_input_none) @@ -54,13 +51,12 @@ MODULE_DEFINITION(LIGHTGUN_NONE, lightgun_input_none) class joystick_input_none : public input_module { public: - joystick_input_none() - : input_module(OSD_JOYSTICKINPUT_PROVIDER, "none") {} + joystick_input_none() : input_module(OSD_JOYSTICKINPUT_PROVIDER, "none") { } int init(const osd_options &options) override { return 0; } - void input_init(running_machine &machine) override {}; - void poll_if_necessary(running_machine &machine) override {}; - void pause() override {}; - void resume() override {}; + void input_init(running_machine &machine) override { } + void poll_if_necessary(running_machine &machine) override { } + void pause() override { } + void resume() override { } }; MODULE_DEFINITION(JOYSTICK_NONE, joystick_input_none) |