mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-18 04:27:41 +01:00
input_common/udp: Fix clang build issues
This commit is contained in:
parent
664fa4ea06
commit
716d6aee30
@ -3,6 +3,7 @@
|
|||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
#include <optional>
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
|
|
||||||
#include "common/param_package.h"
|
#include "common/param_package.h"
|
||||||
@ -44,7 +45,7 @@ public:
|
|||||||
std::unique_ptr<Input::TouchDevice> Create(const Common::ParamPackage& params) override {
|
std::unique_ptr<Input::TouchDevice> Create(const Common::ParamPackage& params) override {
|
||||||
{
|
{
|
||||||
std::lock_guard guard(status->update_mutex);
|
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
|
// 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_x = params.Get("min_x", 100);
|
||||||
status->touch_calibration->min_y = params.Get("min_y", 50);
|
status->touch_calibration->min_y = params.Get("min_y", 50);
|
||||||
|
Loading…
Reference in New Issue
Block a user