Skip to content

Controller joystick not working correctly #87724

Description

@Shadowblitz16

Tested versions

v4.2.1.stable.mono.official [b09f793]

System information

Operating System: Kubuntu 22.04 KDE Plasma Version: 5.24.7 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.3 Kernel Version: 6.5.0-15-generic (64-bit) Graphics Platform: X11 Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics Memory: 15.0 GiB of RAM Graphics Processor: RENOIR

Issue description

I am having some sort of weird input bug.
At first the joystick worked until I kept switching from left to right eventually returning 0
I thought it might be a cause of keyboard being bound to the same action as the controller so I removed the keyboard binding.

The weird 0 bug still existed so I changed the controller device from all to 0 and then changed the deadzone to 0.25
Then the input started returning 0 all the time.

I thought it was the device so I changed it to device id 1
Still nothing...

I changed the device back to 0 and set the deadzone to 0.75 instead of 0.25
Still 0...

I tried to change the deadzone back to 0.5 and got a result of 0

I changed device back to all and it seems to be working fine now.

Steps to reproduce

Try doing the following...

  • make the following input actions...

    • Player1Run
    • Player1Jump
    • Player1Up
    • Player1Down
    • Player1Left
    • Player1Right
  • Bind them to the following...

    • Key X and xbox button X
    • Key Z and xbox button A
    • Key Up and xbox left joy up
    • Key Down and xbox left joy down
    • Key Left and xbox left joy left
    • Key Right and xbox left joy right
  • Devices should be all by default

  • Deadzones should all be 0.5 by default

  • Run Level 1-1 scene and rotate/move the joystick left to right you should get a small chance of the input dir printing as 0 and mario not moving

Minimal reproduction project (MRP)

SMB-GD.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions