mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Stop autoforward on BACKWARD key-press (#7417)
This commit is contained in:
parent
ccc3af128c
commit
9f8582dcdf
2 changed files with 6 additions and 1 deletions
|
@ -1861,6 +1861,9 @@ void Game::processKeyInput()
|
|||
dropSelectedItem(isKeyDown(KeyType::SNEAK));
|
||||
} else if (wasKeyDown(KeyType::AUTOFORWARD)) {
|
||||
toggleAutoforward();
|
||||
} else if (wasKeyDown(KeyType::BACKWARD)) {
|
||||
if (g_settings->getBool("continuous_forward"))
|
||||
toggleAutoforward();
|
||||
} else if (wasKeyDown(KeyType::INVENTORY)) {
|
||||
openInventory();
|
||||
} else if (input->cancelPressed()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue