mirror of https://github.com/stella-emu/stella.git
Save input mappings when leaving dialog
This commit is contained in:
parent
e65d9250f3
commit
c83d22604b
|
@ -303,6 +303,9 @@ class EventHandler
|
|||
*/
|
||||
void handleMouseControl();
|
||||
|
||||
void saveKeyMapping();
|
||||
void saveJoyMapping();
|
||||
|
||||
protected:
|
||||
// Global OSystem object
|
||||
OSystem& myOSystem;
|
||||
|
@ -373,8 +376,6 @@ class EventHandler
|
|||
void setActionMappings(EventMode mode);
|
||||
void setDefaultKeymap(Event::Type, EventMode mode);
|
||||
void setDefaultJoymap(Event::Type, EventMode mode);
|
||||
void saveKeyMapping();
|
||||
void saveJoyMapping();
|
||||
void saveComboMapping();
|
||||
|
||||
private:
|
||||
|
|
|
@ -345,6 +345,10 @@ void InputDialog::saveConfig()
|
|||
|
||||
// Enable/disable control key-combos
|
||||
instance().settings().setValue("ctrlcombo", myCtrlCombo->getState());
|
||||
|
||||
instance().eventHandler().saveKeyMapping();
|
||||
instance().eventHandler().saveJoyMapping();
|
||||
// instance().saveConfig();
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
|
Loading…
Reference in New Issue