diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-05-06 23:09:55 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-06 23:09:55 -0400 |
| commit | 1911b50d34c61139742f86960008bc8d0c72e623 (patch) | |
| tree | d081194e1ea0b673a1cc01f7c00846374da70594 /src/input_common/input_engine.cpp | |
| parent | daf4120c0c5cdc14d23ec2232466a9db3ff5aefa (diff) | |
| parent | 53ec77c62c7e7b77f7280ab5138470fd474f1e21 (diff) | |
Merge pull request #10167 from german77/motion_preview
yuzu: Add motion preview to controller input
Diffstat (limited to 'src/input_common/input_engine.cpp')
| -rw-r--r-- | src/input_common/input_engine.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input_common/input_engine.cpp b/src/input_common/input_engine.cpp index 91aa96aa73..49f5e7f54b 100644 --- a/src/input_common/input_engine.cpp +++ b/src/input_common/input_engine.cpp @@ -58,6 +58,8 @@ void InputEngine::SetHatButton(const PadIdentifier& identifier, int button, u8 v } void InputEngine::SetAxis(const PadIdentifier& identifier, int axis, f32 value) { + value /= 2.0f; + value -= 0.5f; { std::scoped_lock lock{mutex}; ControllerData& controller = controller_list.at(identifier); |
