diff options
author | german77 <juangerman-13@hotmail.com> | 2022-10-21 07:23:12 +0200 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2022-10-21 07:24:08 +0200 |
commit | 7f66050f0c383a5c7d82c5c58098f819d4e1e0bc (patch) | |
tree | 8d449371387a14d7564381037d8deade468ee010 /src/input_common/drivers/gc_adapter.cpp | |
parent | Merge pull request #9088 from Fdawgs/chore/images (diff) | |
download | yuzu-7f66050f0c383a5c7d82c5c58098f819d4e1e0bc.tar yuzu-7f66050f0c383a5c7d82c5c58098f819d4e1e0bc.tar.gz yuzu-7f66050f0c383a5c7d82c5c58098f819d4e1e0bc.tar.bz2 yuzu-7f66050f0c383a5c7d82c5c58098f819d4e1e0bc.tar.lz yuzu-7f66050f0c383a5c7d82c5c58098f819d4e1e0bc.tar.xz yuzu-7f66050f0c383a5c7d82c5c58098f819d4e1e0bc.tar.zst yuzu-7f66050f0c383a5c7d82c5c58098f819d4e1e0bc.zip |
Diffstat (limited to 'src/input_common/drivers/gc_adapter.cpp')
-rw-r--r-- | src/input_common/drivers/gc_adapter.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/input_common/drivers/gc_adapter.cpp b/src/input_common/drivers/gc_adapter.cpp index f4dd24e7d..826fa2109 100644 --- a/src/input_common/drivers/gc_adapter.cpp +++ b/src/input_common/drivers/gc_adapter.cpp @@ -324,7 +324,7 @@ bool GCAdapter::GetGCEndpoint(libusb_device* device) { return true; } -Common::Input::VibrationError GCAdapter::SetRumble( +Common::Input::VibrationError GCAdapter::SetVibration( const PadIdentifier& identifier, const Common::Input::VibrationStatus& vibration) { const auto mean_amplitude = (vibration.low_amplitude + vibration.high_amplitude) * 0.5f; const auto processed_amplitude = @@ -338,6 +338,10 @@ Common::Input::VibrationError GCAdapter::SetRumble( return Common::Input::VibrationError::None; } +bool GCAdapter::IsVibrationEnabled([[maybe_unused]] const PadIdentifier& identifier) { + return rumble_enabled; +} + void GCAdapter::UpdateVibrations() { // Use 8 states to keep the switching between on/off fast enough for // a human to feel different vibration strenght |