diff options
| author | 2024-02-01 11:33:44 -0500 | |
|---|---|---|
| committer | 2024-02-01 11:33:44 -0500 | |
| commit | 21138b6a867632c56330a48a7389430ae2b6e321 (patch) | |
| tree | 6be048ee977f29f4c132d0cfb0bcdb79a7c5966d /src/frontend_common/config.cpp | |
| parent | Merge pull request #12870 from liamwhite/mac-ci (diff) | |
| parent | service: hid: Restore active aruid (diff) | |
| download | yuzu-21138b6a867632c56330a48a7389430ae2b6e321.tar.gz yuzu-21138b6a867632c56330a48a7389430ae2b6e321.tar.xz yuzu-21138b6a867632c56330a48a7389430ae2b6e321.zip | |
Merge pull request #12780 from german77/touch_resource5
service: hid: Fully implement touch resource
Diffstat (limited to 'src/frontend_common/config.cpp')
| -rw-r--r-- | src/frontend_common/config.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/frontend_common/config.cpp b/src/frontend_common/config.cpp index 905f35118..d34624d28 100644 --- a/src/frontend_common/config.cpp +++ b/src/frontend_common/config.cpp | |||
| @@ -190,9 +190,9 @@ void Config::ReadTouchscreenValues() { | |||
| 190 | Settings::values.touchscreen.rotation_angle = | 190 | Settings::values.touchscreen.rotation_angle = |
| 191 | static_cast<u32>(ReadIntegerSetting(std::string("touchscreen_angle"), 0)); | 191 | static_cast<u32>(ReadIntegerSetting(std::string("touchscreen_angle"), 0)); |
| 192 | Settings::values.touchscreen.diameter_x = | 192 | Settings::values.touchscreen.diameter_x = |
| 193 | static_cast<u32>(ReadIntegerSetting(std::string("touchscreen_diameter_x"), 15)); | 193 | static_cast<u32>(ReadIntegerSetting(std::string("touchscreen_diameter_x"), 90)); |
| 194 | Settings::values.touchscreen.diameter_y = | 194 | Settings::values.touchscreen.diameter_y = |
| 195 | static_cast<u32>(ReadIntegerSetting(std::string("touchscreen_diameter_y"), 15)); | 195 | static_cast<u32>(ReadIntegerSetting(std::string("touchscreen_diameter_y"), 90)); |
| 196 | } | 196 | } |
| 197 | 197 | ||
| 198 | void Config::ReadAudioValues() { | 198 | void Config::ReadAudioValues() { |
| @@ -478,9 +478,9 @@ void Config::SaveTouchscreenValues() { | |||
| 478 | WriteIntegerSetting(std::string("touchscreen_angle"), touchscreen.rotation_angle, | 478 | WriteIntegerSetting(std::string("touchscreen_angle"), touchscreen.rotation_angle, |
| 479 | std::make_optional(static_cast<u32>(0))); | 479 | std::make_optional(static_cast<u32>(0))); |
| 480 | WriteIntegerSetting(std::string("touchscreen_diameter_x"), touchscreen.diameter_x, | 480 | WriteIntegerSetting(std::string("touchscreen_diameter_x"), touchscreen.diameter_x, |
| 481 | std::make_optional(static_cast<u32>(15))); | 481 | std::make_optional(static_cast<u32>(90))); |
| 482 | WriteIntegerSetting(std::string("touchscreen_diameter_y"), touchscreen.diameter_y, | 482 | WriteIntegerSetting(std::string("touchscreen_diameter_y"), touchscreen.diameter_y, |
| 483 | std::make_optional(static_cast<u32>(15))); | 483 | std::make_optional(static_cast<u32>(90))); |
| 484 | } | 484 | } |
| 485 | 485 | ||
| 486 | void Config::SaveMotionTouchValues() { | 486 | void Config::SaveMotionTouchValues() { |