mirror of https://github.com/stella-emu/stella.git
fix (partially) #494 (ToDo: Stelladaptor)
This commit is contained in:
parent
b532d5a6ee
commit
4c430556b3
|
@ -117,6 +117,7 @@ int PhysicalJoystickHandler::add(PhysicalJoystickPtr stick)
|
||||||
{
|
{
|
||||||
it->second.joy = stick;
|
it->second.joy = stick;
|
||||||
stick->setMap(it->second.mapping);
|
stick->setMap(it->second.mapping);
|
||||||
|
enableEmulationMappings();
|
||||||
}
|
}
|
||||||
else // adding for the first time
|
else // adding for the first time
|
||||||
{
|
{
|
||||||
|
|
|
@ -177,7 +177,6 @@ class EventHandler
|
||||||
return myPKeyHandler->getMappingDesc(event, mode);
|
return myPKeyHandler->getMappingDesc(event, mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Event::Type eventAtIndex(int idx, EventMode mode) const;
|
Event::Type eventAtIndex(int idx, EventMode mode) const;
|
||||||
string actionAtIndex(int idx, EventMode mode) const;
|
string actionAtIndex(int idx, EventMode mode) const;
|
||||||
string keyAtIndex(int idx, EventMode mode) const;
|
string keyAtIndex(int idx, EventMode mode) const;
|
||||||
|
|
|
@ -131,6 +131,9 @@ void EventMappingWidget::loadConfig()
|
||||||
myActionsList->setSelected(0);
|
myActionsList->setSelected(0);
|
||||||
myFirstTime = false;
|
myFirstTime = false;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
// controller IDs may have changed in between
|
||||||
|
drawKeyMapping();
|
||||||
|
|
||||||
// Make sure remapping is turned off, just in case the user didn't properly
|
// Make sure remapping is turned off, just in case the user didn't properly
|
||||||
// exit last time
|
// exit last time
|
||||||
|
|
Loading…
Reference in New Issue