summaryrefslogtreecommitdiffstats
path: root/src/input_common
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-03-18 08:03:18 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-03-18 08:30:26 +0100
commit716d6aee30fc49858b73ef20750e5636fd43f7ae (patch)
tree1833e2112df428ef4010f090a46a2648eb629fdc /src/input_common
parentastc: Fix clang build issues (diff)
downloadyuzu-716d6aee30fc49858b73ef20750e5636fd43f7ae.tar
yuzu-716d6aee30fc49858b73ef20750e5636fd43f7ae.tar.gz
yuzu-716d6aee30fc49858b73ef20750e5636fd43f7ae.tar.bz2
yuzu-716d6aee30fc49858b73ef20750e5636fd43f7ae.tar.lz
yuzu-716d6aee30fc49858b73ef20750e5636fd43f7ae.tar.xz
yuzu-716d6aee30fc49858b73ef20750e5636fd43f7ae.tar.zst
yuzu-716d6aee30fc49858b73ef20750e5636fd43f7ae.zip
Diffstat (limited to 'src/input_common')
-rw-r--r--src/input_common/udp/udp.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input_common/udp/udp.cpp b/src/input_common/udp/udp.cpp
index ca99cc22f..8c6ef1394 100644
--- a/src/input_common/udp/udp.cpp
+++ b/src/input_common/udp/udp.cpp
@@ -3,6 +3,7 @@
// Refer to the license.txt file included.
#include <mutex>
+#include <optional>
#include <tuple>
#include "common/param_package.h"
@@ -44,7 +45,7 @@ public:
std::unique_ptr<Input::TouchDevice> Create(const Common::ParamPackage& params) override {
{
std::lock_guard guard(status->update_mutex);
- status->touch_calibration.emplace();
+ status->touch_calibration = DeviceStatus::CalibrationData{};
// These default values work well for DS4 but probably not other touch inputs
status->touch_calibration->min_x = params.Get("min_x", 100);
status->touch_calibration->min_y = params.Get("min_y", 50);