jetpack toggling
parent
cbd70c2e4d
commit
aaa2321915
|
@ -2039,6 +2039,15 @@ void Game::processKeyInput()
|
||||||
quicktune->inc();
|
quicktune->inc();
|
||||||
} else if (wasKeyDown(KeyType::QUICKTUNE_DEC)) {
|
} else if (wasKeyDown(KeyType::QUICKTUNE_DEC)) {
|
||||||
quicktune->dec();
|
quicktune->dec();
|
||||||
|
} else if (wasKeyDown(KeyType::TOGGLE_JETPACK)) {
|
||||||
|
bool jetpack = ! g_settings->getBool("jetpack");
|
||||||
|
g_settings->set("jetpack", bool_to_cstr(jetpack));
|
||||||
|
|
||||||
|
if (jetpack) {
|
||||||
|
m_game_ui->showTranslatedStatusText("Jetpack enabled");
|
||||||
|
} else {
|
||||||
|
m_game_ui->showTranslatedStatusText("Jetpack disabled");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isKeyDown(KeyType::JUMP) && runData.reset_jump_timer) {
|
if (!isKeyDown(KeyType::JUMP) && runData.reset_jump_timer) {
|
||||||
|
|
Loading…
Reference in New Issue