mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-23 00:40:58 +01:00
Merge pull request #7710 from german77/just-shake-it
core/hid: Increment shake force
This commit is contained in:
commit
e781f6e767
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ Common::Input::MotionStatus TransformToMotion(const Common::Input::CallbackStatu
|
||||||
if (TransformToButton(callback).value) {
|
if (TransformToButton(callback).value) {
|
||||||
std::random_device device;
|
std::random_device device;
|
||||||
std::mt19937 gen(device());
|
std::mt19937 gen(device());
|
||||||
std::uniform_int_distribution<s16> distribution(-1000, 1000);
|
std::uniform_int_distribution<s16> distribution(-5000, 5000);
|
||||||
status.accel.x.raw_value = static_cast<f32>(distribution(gen)) * 0.001f;
|
status.accel.x.raw_value = static_cast<f32>(distribution(gen)) * 0.001f;
|
||||||
status.accel.y.raw_value = static_cast<f32>(distribution(gen)) * 0.001f;
|
status.accel.y.raw_value = static_cast<f32>(distribution(gen)) * 0.001f;
|
||||||
status.accel.z.raw_value = static_cast<f32>(distribution(gen)) * 0.001f;
|
status.accel.z.raw_value = static_cast<f32>(distribution(gen)) * 0.001f;
|
||||||
|
|
Loading…
Reference in a new issue