Drag and drop on touch screen

Godot Version

4.4

Question

I am trying to implement a drag and drop method for a grid inventory, also it has to work with touch screen. The inventory items can be selected with a tap, and the data is displayed in an info panel. I can use a long press for right click to pick up an item but when i try to stack the item i have to use long press to make the stack - i would like the interface to detect when i release the touch instead, so far i havent been able to get it to work, is there a touch screen library, or any advice on how to make this work?

You can check it in the _unhandled_input() callback

Thanks, its been a long day, thats exactly what i needed.

1 Like