diff options
author | bunnei <bunneidev@gmail.com> | 2022-09-29 21:48:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-29 21:48:28 +0200 |
commit | dbb9d601df3619f95daddb109e80e829b24bd93f (patch) | |
tree | 008c514660a750a3d250cdacc8c1f7f16e600187 /src/core/hle/service/hid/controllers/npad.cpp | |
parent | Merge pull request #8993 from lat9nq/drop-linuxdeploy (diff) | |
parent | service: hid: Partially implement palma controller (diff) | |
download | yuzu-dbb9d601df3619f95daddb109e80e829b24bd93f.tar yuzu-dbb9d601df3619f95daddb109e80e829b24bd93f.tar.gz yuzu-dbb9d601df3619f95daddb109e80e829b24bd93f.tar.bz2 yuzu-dbb9d601df3619f95daddb109e80e829b24bd93f.tar.lz yuzu-dbb9d601df3619f95daddb109e80e829b24bd93f.tar.xz yuzu-dbb9d601df3619f95daddb109e80e829b24bd93f.tar.zst yuzu-dbb9d601df3619f95daddb109e80e829b24bd93f.zip |
Diffstat (limited to 'src/core/hle/service/hid/controllers/npad.cpp')
-rw-r--r-- | src/core/hle/service/hid/controllers/npad.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp index cb29004e8..f8972ec7a 100644 --- a/src/core/hle/service/hid/controllers/npad.cpp +++ b/src/core/hle/service/hid/controllers/npad.cpp @@ -660,7 +660,6 @@ void Controller_NPad::OnMotionUpdate(const Core::Timing::CoreTiming& core_timing ASSERT(false); break; case Core::HID::NpadStyleIndex::ProController: - case Core::HID::NpadStyleIndex::Pokeball: set_motion_state(sixaxis_fullkey_state, motion_state[0]); break; case Core::HID::NpadStyleIndex::Handheld: @@ -676,6 +675,11 @@ void Controller_NPad::OnMotionUpdate(const Core::Timing::CoreTiming& core_timing case Core::HID::NpadStyleIndex::JoyconRight: set_motion_state(sixaxis_right_lifo_state, motion_state[1]); break; + case Core::HID::NpadStyleIndex::Pokeball: + using namespace std::literals::chrono_literals; + set_motion_state(sixaxis_fullkey_state, motion_state[0]); + sixaxis_fullkey_state.delta_time = std::chrono::nanoseconds(15ms).count(); + break; default: break; } |