diff options
| author | 2022-01-14 11:11:20 -0600 | |
|---|---|---|
| committer | 2022-01-14 11:11:20 -0600 | |
| commit | 5ce54328301f46c550b629b6d49d696bac6738f4 (patch) | |
| tree | 3efcbb5cd9ce5c5a9801939aff6e598bad6d8c8c /src/core | |
| parent | Merge pull request #7697 from abouvier/opt-tests (diff) | |
| download | yuzu-5ce54328301f46c550b629b6d49d696bac6738f4.tar.gz yuzu-5ce54328301f46c550b629b6d49d696bac6738f4.tar.xz yuzu-5ce54328301f46c550b629b6d49d696bac6738f4.zip | |
core/hid: Increment shake force
With the current settings 2p mode in pokemon let's go wasn't showing up. By making the shake more violent we can make it appear without any effort using the keyboard
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hid/input_converter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hid/input_converter.cpp b/src/core/hid/input_converter.cpp index f5acff6e0..860aab400 100644 --- a/src/core/hid/input_converter.cpp +++ b/src/core/hid/input_converter.cpp | |||
| @@ -114,7 +114,7 @@ Common::Input::MotionStatus TransformToMotion(const Common::Input::CallbackStatu | |||
| 114 | if (TransformToButton(callback).value) { | 114 | if (TransformToButton(callback).value) { |
| 115 | std::random_device device; | 115 | std::random_device device; |
| 116 | std::mt19937 gen(device()); | 116 | std::mt19937 gen(device()); |
| 117 | std::uniform_int_distribution<s16> distribution(-1000, 1000); | 117 | std::uniform_int_distribution<s16> distribution(-5000, 5000); |
| 118 | status.accel.x.raw_value = static_cast<f32>(distribution(gen)) * 0.001f; | 118 | status.accel.x.raw_value = static_cast<f32>(distribution(gen)) * 0.001f; |
| 119 | status.accel.y.raw_value = static_cast<f32>(distribution(gen)) * 0.001f; | 119 | status.accel.y.raw_value = static_cast<f32>(distribution(gen)) * 0.001f; |
| 120 | status.accel.z.raw_value = static_cast<f32>(distribution(gen)) * 0.001f; | 120 | status.accel.z.raw_value = static_cast<f32>(distribution(gen)) * 0.001f; |