diff options
| author | 2022-12-23 08:32:02 -0600 | |
|---|---|---|
| committer | 2023-01-19 18:05:22 -0600 | |
| commit | e1a3bda4d9881cb99c36b64733b814a3bb437f13 (patch) | |
| tree | a9c0d864b023a810f48c129bb8bd6e84afb2ed2b /src/core/hid/input_converter.cpp | |
| parent | core: hid: Fix input regressions (diff) | |
| download | yuzu-e1a3bda4d9881cb99c36b64733b814a3bb437f13.tar.gz yuzu-e1a3bda4d9881cb99c36b64733b814a3bb437f13.tar.xz yuzu-e1a3bda4d9881cb99c36b64733b814a3bb437f13.zip | |
Address review comments
Diffstat (limited to 'src/core/hid/input_converter.cpp')
| -rw-r--r-- | src/core/hid/input_converter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/hid/input_converter.cpp b/src/core/hid/input_converter.cpp index d7e253044..3f7b8c090 100644 --- a/src/core/hid/input_converter.cpp +++ b/src/core/hid/input_converter.cpp | |||
| @@ -305,17 +305,15 @@ Common::Input::NfcStatus TransformToNfc(const Common::Input::CallbackStatus& cal | |||
| 305 | } | 305 | } |
| 306 | 306 | ||
| 307 | Common::Input::BodyColorStatus TransformToColor(const Common::Input::CallbackStatus& callback) { | 307 | Common::Input::BodyColorStatus TransformToColor(const Common::Input::CallbackStatus& callback) { |
| 308 | Common::Input::BodyColorStatus color{}; | ||
| 309 | switch (callback.type) { | 308 | switch (callback.type) { |
| 310 | case Common::Input::InputType::Color: | 309 | case Common::Input::InputType::Color: |
| 311 | color = callback.color_status; | 310 | return callback.color_status; |
| 312 | break; | 311 | break; |
| 313 | default: | 312 | default: |
| 314 | LOG_ERROR(Input, "Conversion from type {} to color not implemented", callback.type); | 313 | LOG_ERROR(Input, "Conversion from type {} to color not implemented", callback.type); |
| 314 | return {}; | ||
| 315 | break; | 315 | break; |
| 316 | } | 316 | } |
| 317 | |||
| 318 | return color; | ||
| 319 | } | 317 | } |
| 320 | 318 | ||
| 321 | void SanitizeAnalog(Common::Input::AnalogStatus& analog, bool clamp_value) { | 319 | void SanitizeAnalog(Common::Input::AnalogStatus& analog, bool clamp_value) { |