Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Use Physical Keys

Discussion in 'Input System' started by Lord_Eniac, Nov 22, 2023.

  1. Lord_Eniac

    Lord_Eniac

    Joined:
    Jan 28, 2020
    Posts:
    50
    Just morbid curiosity... Is it possible to determine the enabled state of the input system's "Use Physical Keys" setting? Is it possible to modify this setting in script at runtime?
     
  2. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    2,279
    That setting is part of the "legacy" input manager, not the Input System. You really don't want to be using it, either, as the end user may have an AZERTY or Dvorak or JIS layout. Working with raw scan codes, "the third key on the second row" just isn't a useful scheme to be asking users to expect.
     
    Lord_Eniac likes this.
  3. Lord_Eniac

    Lord_Eniac

    Joined:
    Jan 28, 2020
    Posts:
    50
    Agreed!