Files
eden/src/input_common/helpers/touch_from_buttons.h
T

22 lines
582 B
C++
Raw Normal View History

2022-05-15 02:06:02 +02:00
// SPDX-FileCopyrightText: 2020 Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2020-07-14 19:01:36 +02:00
#pragma once
#include "common/input.h"
2020-07-14 19:01:36 +02:00
namespace InputCommon {
/**
* A touch device factory that takes a list of button devices and combines them into a touch device.
*/
2021-10-30 22:23:10 -05:00
class TouchFromButton final : public Common::Input::Factory<Common::Input::InputDevice> {
2020-07-14 19:01:36 +02:00
public:
/**
* Creates a touch device from a list of button devices
*/
2021-10-30 22:23:10 -05:00
std::unique_ptr<Common::Input::InputDevice> Create(const Common::ParamPackage& params) override;
2020-07-14 19:01:36 +02:00
};
} // namespace InputCommon