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. Dismiss Notice

Question Names of joystick buttons

Discussion in 'Scripting' started by Tigersong, Jun 16, 2022.

  1. Tigersong

    Tigersong

    Joined:
    Aug 11, 2014
    Posts:
    73
    I'm trying to set up basic movement using the old Input Manager, and the scripting reference isn't helping. What are the buttons actually called in C#? Why are they not listed?
     
  2. Warren93

    Warren93

    Joined:
    Jun 2, 2014
    Posts:
    9
    You've probably already tried this, but I believe in the old system, mappings (e.g. what button or axis "Fire1" is set to) could be found at:
    Project Settings > Input Manager

    If you just want to quickly figure out all the button names for your particular joystick/controller, you can use an online controller tester:
    https://www.google.com/search?q=gam...0l3j69i65l3.1671j1j7&sourceid=chrome&ie=UTF-8

    (or the Windows built-in gamepad calibration utility)
     
  3. Tigersong

    Tigersong

    Joined:
    Aug 11, 2014
    Posts:
    73
    Thank you, Warren. Should I list you in the credits? ;)