mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-10 12:56:20 +02:00
InputCommon: Get rid of static strings.
This commit is contained in:
3 files changed
+4
-4
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user