peter-kish / gloot

A universal inventory system for the Godot game engine.
MIT License
558 stars 20 forks source link

Drag and drop does not work on a smartphone (Android). #197

Open GreatRedBird opened 4 months ago

GreatRedBird commented 4 months ago

I worked on GLoot version - 2.3.7 and Godot_v4.1.4, everything worked. I switched to GLoot - 2.4.4 and Godot_v4.2.1, items stopped dropping, but everything still works on Windows. Is this an error or do I need to change some settings in the project for the new version of GLoot?

I recorded how the default scene inventory_grid_stacked_ex_transfer.tscn behaves. (selected field is disabled, this is not an error) https://youtu.be/33JJ9FNTLCM

GreatRedBird commented 4 months ago

I checked it on gloot-2.4.7 and it doesn’t work on mobile phones either.

peter-kish commented 4 months ago

I haven't done any testing on Android so far and I wasn't even sure how drag&drop would work on mobile. But if it worked fine in a previous version, I guess it's possible to make it work again. I'll investigate.

TreaBeardGaming commented 4 months ago

Touch should mimic mouse events, but I think there are some caveats when it comes to pressed vs is_pressed but idk haven't tested andriod builds myself.

https://docs.godotengine.org/en/stable/tutorials/inputs/input_examples.html#touch-events

image