mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
InputCommon: Get rid of static strings.
This commit is contained in:
parent
537fe33997
commit
89067e66f9
@ -293,7 +293,7 @@ std::string Joystick::Axis::GetName() const
|
|||||||
|
|
||||||
std::string Joystick::Hat::GetName() const
|
std::string Joystick::Hat::GetName() const
|
||||||
{
|
{
|
||||||
static char tmpstr[] = "Hat . .";
|
char tmpstr[] = "Hat . .";
|
||||||
tmpstr[4] = (char)('0' + m_index);
|
tmpstr[4] = (char)('0' + m_index);
|
||||||
tmpstr[6] = "NESW"[m_direction];
|
tmpstr[6] = "NESW"[m_direction];
|
||||||
return tmpstr;
|
return tmpstr;
|
||||||
|
@ -275,7 +275,7 @@ std::string KeyboardMouse::Button::GetName() const
|
|||||||
|
|
||||||
std::string KeyboardMouse::Axis::GetName() const
|
std::string KeyboardMouse::Axis::GetName() const
|
||||||
{
|
{
|
||||||
static char tmpstr[] = "Axis ..";
|
char tmpstr[] = "Axis ..";
|
||||||
tmpstr[5] = (char)('X' + m_index);
|
tmpstr[5] = (char)('X' + m_index);
|
||||||
tmpstr[6] = (m_range < 0 ? '-' : '+');
|
tmpstr[6] = (m_range < 0 ? '-' : '+');
|
||||||
return tmpstr;
|
return tmpstr;
|
||||||
@ -283,7 +283,7 @@ std::string KeyboardMouse::Axis::GetName() const
|
|||||||
|
|
||||||
std::string KeyboardMouse::Cursor::GetName() const
|
std::string KeyboardMouse::Cursor::GetName() const
|
||||||
{
|
{
|
||||||
static char tmpstr[] = "Cursor ..";
|
char tmpstr[] = "Cursor ..";
|
||||||
tmpstr[7] = (char)('X' + m_index);
|
tmpstr[7] = (char)('X' + m_index);
|
||||||
tmpstr[8] = (m_positive ? '+' : '-');
|
tmpstr[8] = (m_positive ? '+' : '-');
|
||||||
return tmpstr;
|
return tmpstr;
|
||||||
|
@ -226,7 +226,7 @@ ControlState KeyboardAndMouse::Button::GetState() const
|
|||||||
|
|
||||||
std::string KeyboardAndMouse::Cursor::GetName() const
|
std::string KeyboardAndMouse::Cursor::GetName() const
|
||||||
{
|
{
|
||||||
static char tmpstr[] = "Cursor ..";
|
char tmpstr[] = "Cursor ..";
|
||||||
tmpstr[7] = (char)('X' + m_index);
|
tmpstr[7] = (char)('X' + m_index);
|
||||||
tmpstr[8] = (m_positive ? '+' : '-');
|
tmpstr[8] = (m_positive ? '+' : '-');
|
||||||
return tmpstr;
|
return tmpstr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user