diff options
author | Lioncash <mathew1800@gmail.com> | 2021-12-13 15:09:03 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-12-13 15:16:10 +0100 |
commit | 38f3442ea56a3ac9447924c015c2a9ade0f5bb83 (patch) | |
tree | 4fbdcc84b82ff753306647b309c8a0b128af02f0 /src/input_common/drivers/sdl_driver.cpp | |
parent | input_engine: std::move engine name where applicable (diff) | |
download | yuzu-38f3442ea56a3ac9447924c015c2a9ade0f5bb83.tar yuzu-38f3442ea56a3ac9447924c015c2a9ade0f5bb83.tar.gz yuzu-38f3442ea56a3ac9447924c015c2a9ade0f5bb83.tar.bz2 yuzu-38f3442ea56a3ac9447924c015c2a9ade0f5bb83.tar.lz yuzu-38f3442ea56a3ac9447924c015c2a9ade0f5bb83.tar.xz yuzu-38f3442ea56a3ac9447924c015c2a9ade0f5bb83.tar.zst yuzu-38f3442ea56a3ac9447924c015c2a9ade0f5bb83.zip |
Diffstat (limited to '')
-rw-r--r-- | src/input_common/drivers/sdl_driver.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/input_common/drivers/sdl_driver.cpp b/src/input_common/drivers/sdl_driver.cpp index 1bae6cdc8..a9219dbf2 100644 --- a/src/input_common/drivers/sdl_driver.cpp +++ b/src/input_common/drivers/sdl_driver.cpp @@ -491,8 +491,9 @@ std::vector<Common::ParamPackage> SDLDriver::GetInputDevices() const { } return devices; } -Common::Input::VibrationError SDLDriver::SetRumble(const PadIdentifier& identifier, - const Common::Input::VibrationStatus vibration) { + +Common::Input::VibrationError SDLDriver::SetRumble( + const PadIdentifier& identifier, const Common::Input::VibrationStatus& vibration) { const auto joystick = GetSDLJoystickByGUID(identifier.guid.Format(), static_cast<int>(identifier.port)); const auto process_amplitude_exp = [](f32 amplitude, f32 factor) { @@ -526,6 +527,7 @@ Common::Input::VibrationError SDLDriver::SetRumble(const PadIdentifier& identifi return Common::Input::VibrationError::None; } + Common::ParamPackage SDLDriver::BuildAnalogParamPackageForButton(int port, std::string guid, s32 axis, float value) const { Common::ParamPackage params{}; |