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

Making keyboard layout support with the new Input System easy and simple

Discussion in 'Editor & General Support' started by SmushyTacoDevelopment, Apr 7, 2020.

  1. SmushyTacoDevelopment

    SmushyTacoDevelopment

    Joined:
    Mar 30, 2020
    Posts:
    8
    When using the new Input System to configure your controls for keyboards there should be an option called "Reference Layout" this keyboard layout support can be handled by the engine. For example if I set the reference layout to QWERTY and then set D to move right in my game it'll automatically translate to the appropriate key when someone on a different keyboard layout plays your game. So since the equivalent location of the QWERTY D key on DVORAK is E so people on the DVORAK keyboard layout will move to the right with E, people with the QWERTY keyboard layout will move to the right with D and people on any other different keyboard layout will move to the right with the key in that same location on the keyboard. This reference layout option could also be set to none just in case what your doing doesn't need that. If this was implemented with this new system everybody would be able to properly play your games without you having to go through and manually support different keyboard layouts and without users with unsupported layouts having to manually change their keys to play your game.
     
  2. SmushyTacoDevelopment

    SmushyTacoDevelopment

    Joined:
    Mar 30, 2020
    Posts:
    8
    I just realized this is already supported... My apologies!