InputCommon: Get rid of static strings.

This commit is contained in:
Admiral H. Curtiss
2022-07-15 19:53:10 +02:00
parent 537fe33997
commit 89067e66f9
3 changed files with 4 additions and 4 deletions

View File

@ -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;