diff options
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
| -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 | } |