diff options
| author | 2020-03-18 04:03:18 -0300 | |
|---|---|---|
| committer | 2020-03-18 04:30:26 -0300 | |
| commit | 716d6aee30fc49858b73ef20750e5636fd43f7ae (patch) | |
| tree | 1833e2112df428ef4010f090a46a2648eb629fdc /src/input_common/udp/udp.cpp | |
| parent | astc: Fix clang build issues (diff) | |
| download | yuzu-716d6aee30fc49858b73ef20750e5636fd43f7ae.tar.gz yuzu-716d6aee30fc49858b73ef20750e5636fd43f7ae.tar.xz yuzu-716d6aee30fc49858b73ef20750e5636fd43f7ae.zip | |
input_common/udp: Fix clang build issues
Diffstat (limited to 'src/input_common/udp/udp.cpp')
| -rw-r--r-- | src/input_common/udp/udp.cpp | 3 |
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 @@ | |||
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <mutex> | 5 | #include <mutex> |
| 6 | #include <optional> | ||
| 6 | #include <tuple> | 7 | #include <tuple> |
| 7 | 8 | ||
| 8 | #include "common/param_package.h" | 9 | #include "common/param_package.h" |
| @@ -44,7 +45,7 @@ public: | |||
| 44 | std::unique_ptr<Input::TouchDevice> Create(const Common::ParamPackage& params) override { | 45 | std::unique_ptr<Input::TouchDevice> Create(const Common::ParamPackage& params) override { |
| 45 | { | 46 | { |
| 46 | std::lock_guard guard(status->update_mutex); | 47 | std::lock_guard guard(status->update_mutex); |
| 47 | status->touch_calibration.emplace(); | 48 | status->touch_calibration = DeviceStatus::CalibrationData{}; |
| 48 | // These default values work well for DS4 but probably not other touch inputs | 49 | // These default values work well for DS4 but probably not other touch inputs |
| 49 | status->touch_calibration->min_x = params.Get("min_x", 100); | 50 | status->touch_calibration->min_x = params.Get("min_x", 100); |
| 50 | status->touch_calibration->min_y = params.Get("min_y", 50); | 51 | status->touch_calibration->min_y = params.Get("min_y", 50); |