diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2022-07-15 19:53:10 +0200 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2022-07-15 19:53:10 +0200 |
| commit | 89067e66f9c8c60f9bc045970fdcb088457f4903 (patch) | |
| tree | 3664b52a7008d32a7c0933d4ca532ab16018f051 /Source/Core/InputCommon/ControllerInterface | |
| parent | 537fe339973beefe4b73de7f6494dcbfc9219fd4 (diff) | |
InputCommon: Get rid of static strings.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface')
3 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp b/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp index ac72d383be..abef48f157 100644 --- a/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp +++ b/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp @@ -293,7 +293,7 @@ std::string Joystick::Axis::GetName() const std::string Joystick::Hat::GetName() const { - static char tmpstr[] = "Hat . ."; + char tmpstr[] = "Hat . ."; tmpstr[4] = (char)('0' + m_index); tmpstr[6] = "NESW"[m_direction]; return tmpstr; diff --git a/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp b/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp index 0d3ba01449..3fe850715c 100644 --- a/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp +++ b/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp @@ -275,7 +275,7 @@ std::string KeyboardMouse::Button::GetName() const std::string KeyboardMouse::Axis::GetName() const { - static char tmpstr[] = "Axis .."; + char tmpstr[] = "Axis .."; tmpstr[5] = (char)('X' + m_index); tmpstr[6] = (m_range < 0 ? '-' : '+'); return tmpstr; @@ -283,7 +283,7 @@ std::string KeyboardMouse::Axis::GetName() const std::string KeyboardMouse::Cursor::GetName() const { - static char tmpstr[] = "Cursor .."; + char tmpstr[] = "Cursor .."; tmpstr[7] = (char)('X' + m_index); tmpstr[8] = (m_positive ? '+' : '-'); return tmpstr; diff --git a/Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm b/Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm index 7aae59bf95..6b1790149b 100644 --- a/Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm +++ b/Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm @@ -226,7 +226,7 @@ ControlState KeyboardAndMouse::Button::GetState() const std::string KeyboardAndMouse::Cursor::GetName() const { - static char tmpstr[] = "Cursor .."; + char tmpstr[] = "Cursor .."; tmpstr[7] = (char)('X' + m_index); tmpstr[8] = (m_positive ? '+' : '-'); return tmpstr; |
