Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Joystick drift

Discussion in 'Input System' started by Deleted User, May 30, 2020.

Thread Status:
Not open for further replies.
  1. Deleted User

    Deleted User

    Guest

    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.
     
    kristoffe likes this.
  2. Deleted User

    Deleted User

    Guest

    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.
     
    kristoffe likes this.
  3. kristoffe

    kristoffe

    Joined:
    Aug 2, 2020
    Posts:
    1
    upload_2022-12-9_20-13-36.png
     
    Skellybob likes this.
  4. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,623
    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.
     
Thread Status:
Not open for further replies.