mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
ControllerInterface: Add InputBackend interface and SDL implementation.
This commit is contained in:
parent
dc046a2470
commit
44a4573303
8 changed files with 125 additions and 46 deletions
26
Source/Core/InputCommon/ControllerInterface/InputBackend.h
Normal file
26
Source/Core/InputCommon/ControllerInterface/InputBackend.h
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue