This commit is contained in:
Steve Checkoway
2006-09-15 19:03:21 +00:00
parent 89c3ef56d4
commit 87d3d0e043
@@ -124,12 +124,12 @@ RString InputHandler::GetDeviceSpecificInputString( const DeviceInput &di )
{
wchar_t c = DeviceButtonToChar( di.button, false );
if( c && c != L' ' ) // Don't show "Key " for space.
return InputDeviceToString(di.device) + " " + Capitalize( WStringToRString(wstring()+c) );
return InputDeviceToString( di.device ) + " " + Capitalize( WStringToRString(wstring()+c) );
}
RString s = DeviceButtonToString(di.button);
RString s = DeviceButtonToString( di.button );
if( di.device != DEVICE_KEYBOARD )
s = InputDeviceToString(di.device) + " " + s;
s = InputDeviceToString( di.device ) + " " + s;
return s;
}
@@ -151,11 +151,11 @@ RString InputHandler::GetLocalizedInputString( const DeviceInput &di )
case KEY_PGDN: return PGDN.GetValue();
case KEY_BACKSLASH: return BACKSLASH.GetValue();
default:
wchar_t c = DeviceButtonToChar(di.button,false);
wchar_t c = DeviceButtonToChar( di.button, false );
if( c && c != L' ' ) // Don't show "Key " for space.
return Capitalize( WStringToRString(wstring()+c) );
return DeviceButtonToString(di.button);
return DeviceButtonToString( di.button );
}
}