summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/Src/ControllerInterface/DInput/DInputKeyboardMouse.cpp
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2010-07-16 03:43:11 +0000
committerJordan Woyak <jordan.woyak@gmail.com>2010-07-16 03:43:11 +0000
commitdeffc957948dd86306a6845c24db42fca7d71288 (patch)
treee2a5ece931bf5a96be106e985e78a047c583b87e /Source/Core/InputCommon/Src/ControllerInterface/DInput/DInputKeyboardMouse.cpp
parentf4385328798fb7c241105e6154da69522ba785d9 (diff)
New Wiimote Plugin: Moved Linux cursor position code into ControllerInterface/Xlib. (absolute cursor position can be mapped to something other than IR camera) (code fixed by Glennrics) Put the UDP Wiimote dialog's Update Buttons,Update IR,Update Nunchuk... checkboxes in an "Update" group box. Fixed some Linux config dialog problems. (thanks Glennrics again) Some other minor cleanup in ControllerInterface. (changed some std::string/stringstream to char[] where possible) Removed a warning in DX11 plugin.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5880 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/InputCommon/Src/ControllerInterface/DInput/DInputKeyboardMouse.cpp')
-rw-r--r--Source/Core/InputCommon/Src/ControllerInterface/DInput/DInputKeyboardMouse.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/Source/Core/InputCommon/Src/ControllerInterface/DInput/DInputKeyboardMouse.cpp b/Source/Core/InputCommon/Src/ControllerInterface/DInput/DInputKeyboardMouse.cpp
index 598936d121..33101c2507 100644
--- a/Source/Core/InputCommon/Src/ControllerInterface/DInput/DInputKeyboardMouse.cpp
+++ b/Source/Core/InputCommon/Src/ControllerInterface/DInput/DInputKeyboardMouse.cpp
@@ -262,20 +262,22 @@ std::string KeyboardMouse::Key::GetName() const
std::string KeyboardMouse::Button::GetName() const
{
- return std::string("Button ") + char('0'+m_index);
+ return std::string("Button ") + char('0' + m_index);
}
std::string KeyboardMouse::Axis::GetName() const
{
- std::string tmpstr("Axis ");
- tmpstr += "XYZ"[m_index]; tmpstr += (m_range>0 ? '+' : '-');
+ static char tmpstr[] = "Axis ..";
+ tmpstr[5] = (char)('X' + m_index);
+ tmpstr[6] = (m_range<0 ? '-' : '+');
return tmpstr;
}
std::string KeyboardMouse::Cursor::GetName() const
{
- std::string tmpstr("Cursor ");
- tmpstr += "XY"[m_index]; tmpstr += (m_positive ? '+' : '-');
+ static char tmpstr[] = "Cursor ..";
+ tmpstr[7] = (char)('X' + m_index);
+ tmpstr[8] = (m_positive ? '+' : '-');
return tmpstr;
}