diff options
| author | 2020-11-23 17:25:53 -0800 | |
|---|---|---|
| committer | 2020-11-23 17:25:53 -0800 | |
| commit | e371d12af6046c316956edb2f6322ad66c0189d4 (patch) | |
| tree | 77be1c6d43761f3e2df60a45f6224865dd4835cc /src/input_common/sdl/sdl_impl.cpp | |
| parent | Merge pull request #4451 from slashiee/extended-logging (diff) | |
| parent | input_common: Treat warnings as errors (diff) | |
| download | yuzu-e371d12af6046c316956edb2f6322ad66c0189d4.tar.gz yuzu-e371d12af6046c316956edb2f6322ad66c0189d4.tar.xz yuzu-e371d12af6046c316956edb2f6322ad66c0189d4.zip | |
Merge pull request #4927 from lioncash/input-error
input_common: Treat warnings as errors
Diffstat (limited to '')
| -rw-r--r-- | src/input_common/sdl/sdl_impl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cpp index c395d96cf..c16928e98 100644 --- a/src/input_common/sdl/sdl_impl.cpp +++ b/src/input_common/sdl/sdl_impl.cpp | |||
| @@ -864,6 +864,8 @@ Common::ParamPackage SDLEventToMotionParamPackage(SDLState& state, const SDL_Eve | |||
| 864 | Common::ParamPackage BuildParamPackageForBinding(int port, const std::string& guid, | 864 | Common::ParamPackage BuildParamPackageForBinding(int port, const std::string& guid, |
| 865 | const SDL_GameControllerButtonBind& binding) { | 865 | const SDL_GameControllerButtonBind& binding) { |
| 866 | switch (binding.bindType) { | 866 | switch (binding.bindType) { |
| 867 | case SDL_CONTROLLER_BINDTYPE_NONE: | ||
| 868 | break; | ||
| 867 | case SDL_CONTROLLER_BINDTYPE_AXIS: | 869 | case SDL_CONTROLLER_BINDTYPE_AXIS: |
| 868 | return BuildAnalogParamPackageForButton(port, guid, binding.value.axis); | 870 | return BuildAnalogParamPackageForButton(port, guid, binding.value.axis); |
| 869 | case SDL_CONTROLLER_BINDTYPE_BUTTON: | 871 | case SDL_CONTROLLER_BINDTYPE_BUTTON: |
| @@ -984,7 +986,7 @@ class SDLPoller : public InputCommon::Polling::DevicePoller { | |||
| 984 | public: | 986 | public: |
| 985 | explicit SDLPoller(SDLState& state_) : state(state_) {} | 987 | explicit SDLPoller(SDLState& state_) : state(state_) {} |
| 986 | 988 | ||
| 987 | void Start(const std::string& device_id) override { | 989 | void Start([[maybe_unused]] const std::string& device_id) override { |
| 988 | state.event_queue.Clear(); | 990 | state.event_queue.Clear(); |
| 989 | state.polling = true; | 991 | state.polling = true; |
| 990 | } | 992 | } |