blob: da4c1b6b9f58ff10bd34722e48f6aeb2c9af9603 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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
|