diff options
Diffstat (limited to 'src/osd/interface/inputman.h')
-rw-r--r-- | src/osd/interface/inputman.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/osd/interface/inputman.h b/src/osd/interface/inputman.h new file mode 100644 index 00000000000..da4c1b6b9f5 --- /dev/null +++ b/src/osd/interface/inputman.h @@ -0,0 +1,46 @@ +// license:BSD-3-Clause +// copyright-holders:Aaron Giles +/*************************************************************************** + + inputman.h + + OSD interface to the input manager + +***************************************************************************/ +#ifndef MAME_OSD_INTERFACE_INPUTMAN_H +#define MAME_OSD_INTERFACE_INPUTMAN_H + +#pragma once + +#include "inputcode.h" +#include "inputfwd.h" + +#include <string_view> + + +namespace osd { + +//************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + +// interface to application input manager + +class input_manager +{ +protected: + virtual ~input_manager() = default; + +public: + virtual bool class_enabled(input_device_class devclass) const = 0; + + virtual input_device &add_device( + input_device_class devclass, + std::string_view name, + std::string_view id, + void *internal = nullptr) = 0; +}; + +} // namespace osd + +#endif // MAME_OSD_INTERFACE_INPUTMAN_H |