summaryrefslogtreecommitdiff
path: root/src/input_common/drivers/sdl_driver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/input_common/drivers/sdl_driver.cpp')
-rw-r--r--src/input_common/drivers/sdl_driver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/drivers/sdl_driver.cpp b/src/input_common/drivers/sdl_driver.cpp
index 1e3741e0f..0b24f1858 100644
--- a/src/input_common/drivers/sdl_driver.cpp
+++ b/src/input_common/drivers/sdl_driver.cpp
@@ -929,7 +929,7 @@ std::string SDLDriver::GetHatButtonName(u8 direction_value) const {
929 } 929 }
930} 930}
931 931
932u8 SDLDriver::GetHatButtonId(const std::string direction_name) const { 932u8 SDLDriver::GetHatButtonId(const std::string& direction_name) const {
933 Uint8 direction; 933 Uint8 direction;
934 if (direction_name == "up") { 934 if (direction_name == "up") {
935 direction = SDL_HAT_UP; 935 direction = SDL_HAT_UP;