summaryrefslogtreecommitdiff
path: root/src/input_common/touch_from_button.h
diff options
context:
space:
mode:
authorGravatar FearlessTobi2020-07-14 19:01:36 +0200
committerGravatar FearlessTobi2020-08-29 18:56:34 +0200
commite6bd1fd1b8487e421f71d43b6073ee56de1a043d (patch)
tree53b383906fae814a67ae270b9b510a60f1b5df9d /src/input_common/touch_from_button.h
parentMerge pull request #4604 from lioncash/lifetime (diff)
downloadyuzu-e6bd1fd1b8487e421f71d43b6073ee56de1a043d.tar.gz
yuzu-e6bd1fd1b8487e421f71d43b6073ee56de1a043d.tar.xz
yuzu-e6bd1fd1b8487e421f71d43b6073ee56de1a043d.zip
yuzu: Add motion and touch configuration
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