diff options
| author | 2022-11-05 10:39:03 -0600 | |
|---|---|---|
| committer | 2022-11-19 08:44:33 -0600 | |
| commit | 38c48cf8d896f28f7424b28265110c34f69d2369 (patch) | |
| tree | 5777e9fafc1ec4182068daa8d7a0ab9630d1ee40 /src/core/hid/input_converter.cpp | |
| parent | Merge pull request #9226 from Kelebek1/regs_regression (diff) | |
| download | yuzu-38c48cf8d896f28f7424b28265110c34f69d2369.tar.gz yuzu-38c48cf8d896f28f7424b28265110c34f69d2369.tar.xz yuzu-38c48cf8d896f28f7424b28265110c34f69d2369.zip | |
core: hid: Implement true multitouch support
Diffstat (limited to 'src/core/hid/input_converter.cpp')
| -rw-r--r-- | src/core/hid/input_converter.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/core/hid/input_converter.cpp b/src/core/hid/input_converter.cpp index 5d8b75b50..502692875 100644 --- a/src/core/hid/input_converter.cpp +++ b/src/core/hid/input_converter.cpp | |||
| @@ -200,9 +200,6 @@ Common::Input::TouchStatus TransformToTouch(const Common::Input::CallbackStatus& | |||
| 200 | x = std::clamp(x, 0.0f, 1.0f); | 200 | x = std::clamp(x, 0.0f, 1.0f); |
| 201 | y = std::clamp(y, 0.0f, 1.0f); | 201 | y = std::clamp(y, 0.0f, 1.0f); |
| 202 | 202 | ||
| 203 | // Limit id to maximum number of fingers | ||
| 204 | status.id = std::clamp(status.id, 0, 16); | ||
| 205 | |||
| 206 | if (status.pressed.inverted) { | 203 | if (status.pressed.inverted) { |
| 207 | status.pressed.value = !status.pressed.value; | 204 | status.pressed.value = !status.pressed.value; |
| 208 | } | 205 | } |