diff options
| author | 2024-01-16 12:17:18 -0600 | |
|---|---|---|
| committer | 2024-01-28 18:27:25 -0600 | |
| commit | 575183d6dcd8da9b10ee41e47be4b7d4f8631783 (patch) | |
| tree | d2898bdefae5be2fb68e7df97465422c0fae3991 /src/frontend_common/config.cpp | |
| parent | Merge pull request #12555 from flodavid/fix-gamemode-setting (diff) | |
| download | yuzu-575183d6dcd8da9b10ee41e47be4b7d4f8631783.tar.gz yuzu-575183d6dcd8da9b10ee41e47be4b7d4f8631783.tar.xz yuzu-575183d6dcd8da9b10ee41e47be4b7d4f8631783.zip | |
service: hid: Fully implement touch resource
Diffstat (limited to '')
| -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() { |