make mouse buttons show proper names instead of 'Mouse 0'
This commit is contained in:
@@ -155,9 +155,6 @@ RString DeviceButtonToString( DeviceButton key )
|
|||||||
if( key >= MIDI_FIRST && key <= MIDI_LAST )
|
if( key >= MIDI_FIRST && key <= MIDI_LAST )
|
||||||
return ssprintf( "Midi %d", key-MIDI_FIRST );
|
return ssprintf( "Midi %d", key-MIDI_FIRST );
|
||||||
|
|
||||||
if( key >= MOUSE_LEFT && key <= MOUSE_WHEELDOWN )
|
|
||||||
return ssprintf( "Mouse %d", key-MOUSE_LEFT );
|
|
||||||
|
|
||||||
map<DeviceButton,RString>::const_iterator it = g_mapNamesToString.find( key );
|
map<DeviceButton,RString>::const_iterator it = g_mapNamesToString.find( key );
|
||||||
if( it != g_mapNamesToString.end() )
|
if( it != g_mapNamesToString.end() )
|
||||||
return it->second;
|
return it->second;
|
||||||
|
|||||||
Reference in New Issue
Block a user