I want to make an inventory system in my game. Is there a way to somehow change drag and drop functions to move items not by holding a mouse button, but by just clicking it once and move it to another slot? Or do i need to code my own functions to do that?
godot/scene/main/viewport.cpp at 4.4 · godotengine/godot · GitHub It will perform a drop when the left click is pressed (ironically to make the force_drag() function work better ) This can be avoided by setting the InputEventMouseButton.button_index to MOUSE_BUTTON_NONE in your _gui_input() because that callback gets processed before the check but