We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59de155 commit 8a868a4Copy full SHA for 8a868a4
tutorials/2d/2d_movement.rst
@@ -254,7 +254,8 @@ on the screen will cause the player to move to the target location.
254
255
public override void _Input(InputEvent @event)
256
{
257
- if (Input.IsActionPressed("click"))
+ // Use IsActionPressed to only accept single taps as input instead of mouse drags.
258
+ if (@event.IsActionPressed("click"))
259
260
_target = GetGlobalMousePosition();
261
}
0 commit comments