mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Input: Fix on_rightclick called when placing into air
This commit is contained in:
parent
f1d72d212a
commit
3176daee79
1 changed files with 3 additions and 0 deletions
|
@ -3139,6 +3139,9 @@ void Game::processPlayerInteraction(f32 dtime, bool show_hud, bool show_debug)
|
|||
|
||||
input->clearWasKeyPressed();
|
||||
input->clearWasKeyReleased();
|
||||
// Ensure DIG & PLACE are marked as handled
|
||||
wasKeyDown(KeyType::DIG);
|
||||
wasKeyDown(KeyType::PLACE);
|
||||
|
||||
input->joystick.clearWasKeyDown(KeyType::DIG);
|
||||
input->joystick.clearWasKeyDown(KeyType::PLACE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue