handle primary action inputs

This commit is contained in:
Rendo 2025-07-28 05:33:09 +05:00
commit 8708540770
5 changed files with 7 additions and 1 deletions

View file

@ -10,6 +10,7 @@ public partial class DroppableItem : Area2D
{
if (@event.IsActionPressed("primary_action"))
{
GetViewport().SetInputAsHandled();
PickUp();
EmitSignal(SignalName.PickedUp);
}