only save mappings for user-changable mapping slots (less cluttered keymaps.ini)
This commit is contained in:
@@ -526,7 +526,7 @@ void InputMapper::SaveMappingsToDisk()
|
||||
RString sNameString = GameI.toString( pGame );
|
||||
|
||||
vector<RString> asValues;
|
||||
for( int slot = 0; slot < NUM_GAME_TO_DEVICE_SLOTS; ++slot )
|
||||
for( int slot = 0; slot < NUM_USER_GAME_TO_DEVICE_SLOTS; ++slot ) // don't save data from the last (keyboard automap) slot
|
||||
asValues.push_back( m_GItoDI[i][j][slot].ToString() );
|
||||
|
||||
while( asValues.size() && asValues.back() == "" )
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
#include "GameConstantsAndTypes.h"
|
||||
|
||||
const int NUM_GAME_TO_DEVICE_SLOTS = 5; // five device inputs may map to one game input
|
||||
const int NUM_SHOWN_GAME_TO_DEVICE_SLOTS = 3;
|
||||
const int NUM_USER_GAME_TO_DEVICE_SLOTS = 2;
|
||||
|
||||
class InputMapper
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user