Reset command: also reset controller state.

This commit is contained in:
Markus Uhr 2017-11-13 22:23:38 +01:00 committed by Stephen Anthony
parent 2f787fbb91
commit e6b5d792b7
1 changed files with 10 additions and 0 deletions

View File

@ -1500,6 +1500,16 @@ void DebuggerParser::executeReset()
{
debugger.reset();
debugger.rom().invalidate();
debugger.riotDebug().controller(Controller::Left).set(Controller::One, true);
debugger.riotDebug().controller(Controller::Left).set(Controller::Two, true);
debugger.riotDebug().controller(Controller::Left).set(Controller::Three, true);
debugger.riotDebug().controller(Controller::Left).set(Controller::Four, true);
debugger.riotDebug().controller(Controller::Left).set(Controller::Six, true);
debugger.riotDebug().controller(Controller::Right).set(Controller::One, true);
debugger.riotDebug().controller(Controller::Right).set(Controller::Two, true);
debugger.riotDebug().controller(Controller::Right).set(Controller::Three, true);
debugger.riotDebug().controller(Controller::Right).set(Controller::Four, true);
debugger.riotDebug().controller(Controller::Right).set(Controller::Six, true);
commandResult << "reset system";
}