Fix DInput and SDL.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7345 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Jordan Woyak
2011-03-14 21:07:28 +00:00
parent bfe7b028ce
commit a55e63c697
3 changed files with 13 additions and 9 deletions

View File

@ -241,14 +241,14 @@ int Joystick::GetId() const
std::string Joystick::Button::GetName() const
{
std::ostringstream ss;
ss << "Button " << m_index;
ss << "Button " << (int)m_index;
return ss.str();
}
std::string Joystick::Axis::GetName() const
{
std::ostringstream ss;
ss << "Axis " << m_index << (m_range<0 ? '-' : '+');
ss << "Axis " << (int)m_index << (m_range<0 ? '-' : '+');
return ss.str();
}