Joystick drift

So I’ve been trying to work on a game for a game jam that’s due next Friday evening, but there’s some absolutely random problem that’s come up and I have no clue what to do about it.

Basically, my game’s a 2d platformer where the player has the option of moving with the arrow keys, joystick or D-pad. It works ok when I test it using a key board, but then whenever I try inserting my gamepad in, the character just starts moving around with no rhyme or reason.

Has anybody else ever encountered this issue before? I have absolutely no idea what I could do to fix this random problem.

For the record, I tried inserting and testing with a different gamepad and the same weird results came up, so I’m pretty sure this issue has nothing to do with the controller itself.

I figured it out!

I was just working with unhelpful figures for the axis in the project.

When I set the dead value to 0.25 and the sensitivity value to 0.5, it worked as I wanted it to.

Please don’t necro threads. This thread doesn’t belong to the 2D forum. The user you’re replying to has been deleted if you look.

Moved and locked.