2020-07-14 19:01:36 +02:00
|
|
|
// Copyright 2020 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-09-20 23:57:55 +02:00
|
|
|
#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-31 04:23:10 +01: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-31 04:23:10 +01:00
|
|
|
std::unique_ptr<Common::Input::InputDevice> Create(const Common::ParamPackage& params) override;
|
2020-07-14 19:01:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace InputCommon
|