Open TheYellowArchitect opened 2 months ago
Yeah, that solution looks like a hack and Godot doesn't seem to "officially" support right-click drags ☹️ Since I'm trying to stick to the "Godot way" of implementing things, I don't see this being implemented soon (I had bad experience with including such solutions into my code).
But I'll leave the issue open in case something changes and Godot 4.4 starts supporting this feature.
I have wasted 2 months in a past project because I went opposite to the "Godot way", so I fully understand, and agree. I would suggest to change the "wontfix" tag to "godot-core-engine" or sth, so its more explicit what holds an issue (and also apply it here)
Btw, aside of the above hack, how would you suggest to implement this right-click to drag feature?
I opened a godot proposal https://github.com/godotengine/godot-proposals/issues/10837 Whenever it is completed, this issue can close :+1:
In the game I'm making (think topdown shooter like Synthetik), left click shoots a gun, and also if you left click an item (to drag it), the item is activated. To move items to other inventory slots, right click is required. I don't know how easy that is to implement.
The only solution I found on the internet is this which to synopsize: Duplicates the left click input event mouse button, and replaces the left click with right click. Though it cannot be copy-pasted as is to
ctrl_draggable
from my test