Check Gamepad Thumbstick-Delta without InputChanged-Event

Hi everyone,

i am currently implementing the gamepad controls for my game and i need to read the Thumbsticks Delta.X value without using the InputBegan event because i already implemented the controls for my game in the RenderStepped event. It’s a very simple game with only left and right movement.

How would i check the gamepads thumbstick-state from anywhere in my code?

– SormDev

Maybe you can try and use GetGamepadState() and tie it into your RenderStepped?

for _, input in pairs(inputObjects) do
        if input.KeyCode == Enum.KeyCode.Thumbstick1 then
            print("Thumbstick X:", input.Position.X)
        end
    end
1 Like