Skip to content

u/DCvBC

In this archive from Dec 2025 to Sep 2026

4
posts
2
comments
0
media
10
score

might need to manually define a deadzone?
Input.get_vector() allows for a 5th argument for the deadzone on the range of 0 to 1

So maybe try:

var input_dir := Input.get_vector("ui_left", "ui_right", "ui_up", "ui_down", 0.2)

Try adjusting that "0.2" up and down to experiment.

HOWEVER! From what I've read, "Input.get_vector()" apparently uses a circular deadzone, so if you are testing with a controller you may have some slight stick-drift going on, resulting in non-perfect up/down movement.

What you might want to do instead is utilise "Input.get_axis", which from what i read provides separate deadzones for each axis (which helps with drift).

So try replacing:

var input_dir := Input.get_vector("ui_left", "ui_right", "ui_up", "ui_down")

With:

var input_dir = Vector2(Input.get_axis("ui_left", "ui_right"), Input.get_axis("ui_up", "ui_down"))

Give that a try and let me know how you go! (it might take me a while to get back to you)

1 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.