mirror of
https://github.com/minetest/minetest.git
synced 2024-09-24 13:30:30 +02:00
Input: Fix on_rightclick called when placing into air
This commit is contained in:
parent
f1d72d212a
commit
3176daee79
|
@ -3139,6 +3139,9 @@ void Game::processPlayerInteraction(f32 dtime, bool show_hud, bool show_debug)
|
||||||
|
|
||||||
input->clearWasKeyPressed();
|
input->clearWasKeyPressed();
|
||||||
input->clearWasKeyReleased();
|
input->clearWasKeyReleased();
|
||||||
|
// Ensure DIG & PLACE are marked as handled
|
||||||
|
wasKeyDown(KeyType::DIG);
|
||||||
|
wasKeyDown(KeyType::PLACE);
|
||||||
|
|
||||||
input->joystick.clearWasKeyDown(KeyType::DIG);
|
input->joystick.clearWasKeyDown(KeyType::DIG);
|
||||||
input->joystick.clearWasKeyDown(KeyType::PLACE);
|
input->joystick.clearWasKeyDown(KeyType::PLACE);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user