Left analog stick continuously calls OnButtonReleased and OnButtonPressed

Describe the bug:

If you take your controller and hold the left analog stick forward, the callbacks OnButtonPressed and OnButtonReleased will both be fired immediately. This also applies to local variants.

For example, if we have this script:

function ShopScript:LocalOnButtonReleased(btn)
	print("Released: " .. btn)
end

function ShopScript:LocalOnButtonPressed(btn)
	print("Pressed: " .. btn)
end

And we just simply push the analog stick forward, it will produce the following log:

[Client] Pressed: forward
[Client] Released: forward
[Client] Pressed: forward
[Client] Released: forward
[Client] Pressed: forward
[Client] Released: forward
[Client] Pressed: forward
[Client] Released: forward
[Client] Pressed: forward
[Client] Released: forward
[Client] Pressed: forward
[Client] Released: forward
[Client] Pressed: forward
[Client] Released: forward
[Client] Pressed: forward
[Client] Released: forward
[Client] Pressed: forward
[Client] Released: forward
[Client] Pressed: forward
[Client] Released: forward
[Client] Pressed: forward
[Client] Released: forward
[Client] Pressed: primary
[Client] Released: primary

Which platform: Stadia
Which input: Controller
Your Crayta username: Cereal
Time + date seen: July 8th 2021
Version number (found in Help tab in Settings): 0.6.219.105635

I have opened a bug for this one, it does seem to be confused about if the button is pressed or released.

1 Like