You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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?
TheYellowArchitect
changed the title
[Feature Request] Drag items with right-click
Drag items with right-click
Sep 22, 2024
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 testThe text was updated successfully, but these errors were encountered: