diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2022-10-22 16:13:35 -0500 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2022-11-01 21:59:08 -0500 |
| commit | 44a4573303917496ee9b4107fbe41a5cad142e2d (patch) | |
| tree | 0108e4ad0e8eeb3605e4fca99ae2a124e68d4127 /Source/Core/InputCommon/ControllerInterface/InputBackend.h | |
| parent | dc046a247014f045c9ba52b0d4110d7a64f321bc (diff) | |
ControllerInterface: Add InputBackend interface and SDL implementation.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/InputBackend.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/InputBackend.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/InputBackend.h b/Source/Core/InputCommon/ControllerInterface/InputBackend.h new file mode 100644 index 0000000000..653bc16df1 --- /dev/null +++ b/Source/Core/InputCommon/ControllerInterface/InputBackend.h @@ -0,0 +1,26 @@ +// Copyright 2022 Dolphin Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +class ControllerInterface; + +namespace ciface +{ +class InputBackend +{ +public: + InputBackend(ControllerInterface* controller_interface); + + virtual ~InputBackend(); + + virtual void PopulateDevices() = 0; + virtual void UpdateInput(); + + ControllerInterface& GetControllerInterface(); + +private: + ControllerInterface& m_controller_interface; +}; + +} // namespace ciface |
