2020-07-14 13:01:36 -04: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 17:57:55 -04:00
|
|
|
#include "common/input.h"
|
2020-07-14 13:01:36 -04:00
|
|
|
|
|
|
|
namespace InputCommon {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A touch device factory that takes a list of button devices and combines them into a touch device.
|
|
|
|
*/
|
2021-09-20 17:57:55 -04:00
|
|
|
class TouchFromButton final : public Input::Factory<Input::InputDevice> {
|
2020-07-14 13:01:36 -04:00
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* Creates a touch device from a list of button devices
|
|
|
|
*/
|
2021-09-20 17:57:55 -04:00
|
|
|
std::unique_ptr<Input::InputDevice> Create(const Common::ParamPackage& params) override;
|
2020-07-14 13:01:36 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace InputCommon
|