InputDevice_Invalid

This commit is contained in:
Glenn Maynard
2006-09-26 21:10:47 +00:00
parent 361f8f4e01
commit 1641aec026
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -218,7 +218,7 @@ StringToX( InputDevice );
* localization or the keyboard language. */
RString DeviceInput::ToString() const
{
if( device == DEVICE_NONE )
if( device == InputDevice_Invalid )
return RString();
RString s = InputDeviceToString(device) + "_" + DeviceButtonToString(button);
@@ -232,7 +232,7 @@ bool DeviceInput::FromString( const RString &s )
if( 2 != sscanf( s, "%31[^_]_%31[^_]", szDevice, szButton ) )
{
device = DEVICE_NONE;
device = InputDevice_Invalid;
return false;
}