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

23 lines
611 B
C++
Raw Normal View History

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
#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