summaryrefslogtreecommitdiff
path: root/src/input_common/touch_from_button.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/input_common/touch_from_button.h')
-rw-r--r--src/input_common/touch_from_button.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/input_common/touch_from_button.h b/src/input_common/touch_from_button.h
new file mode 100644
index 000000000..cfb82f108
--- /dev/null
+++ b/src/input_common/touch_from_button.h
@@ -0,0 +1,25 @@
1// Copyright 2020 Citra Emulator Project
2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.
4
5#pragma once
6
7#include <memory>
8#include "core/frontend/framebuffer_layout.h"
9#include "core/frontend/input.h"
10
11namespace InputCommon {
12
13/**
14 * A touch device factory that takes a list of button devices and combines them into a touch device.
15 */
16class TouchFromButtonFactory final : public Input::Factory<Input::TouchDevice> {
17public:
18 /**
19 * Creates a touch device from a list of button devices
20 * @param unused
21 */
22 std::unique_ptr<Input::TouchDevice> Create(const Common::ParamPackage& params) override;
23};
24
25} // namespace InputCommon