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

new Input System does not seem to respond to F13+ keys

Discussion in 'Input System' started by yoiang, May 25, 2021.

  1. yoiang

    yoiang

    Joined:
    Jun 3, 2019
    Posts:
    6
    Hello!
    I am on a project where our users will have the option of using an accessibility device for interactions. For certain operations the device sends out input beyond F12 which seems to be the highest function key the new Input System will recognize. Is there a fix or workaround for this issue besides using a software remapper?

    Thanks so much for your help!
     
  2. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    9,903
    I don't think it's currently possible since not even the Debugger reacts to those keystrokes. I think the best you can do is open a bug about it. Besides the remap in the keyboard software, of course.
     
  3. cxode

    cxode

    Joined:
    Jun 7, 2017
    Posts:
    267
    Bump. This is a regression from the old input system, which supported up to F15.

    Where are we supposed to file bugs now that they closed the github repo?
     
  4. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    9,903
    cxode likes this.
  5. cxode

    cxode

    Joined:
    Jun 7, 2017
    Posts:
    267
    I have filed a bug report about this regression. I'll update this thread with any responses from Unity.
     
  6. cxode

    cxode

    Joined:
    Jun 7, 2017
    Posts:
    267
    Got a response from unity:

    Seems promising!
     
  7. Rene-Damm

    Rene-Damm

    Unity Technologies

    Joined:
    Sep 15, 2012
    Posts:
    1,779
    The key codes did go up there but I don't think the extra keys were actually picked up on any platform. Might be wrong here. Our Win32 backend certainly doesn't support them, though. Pretty sure our Mac backend doesn't either.
     
  8. cxode

    cxode

    Joined:
    Jun 7, 2017
    Posts:
    267
    That's what I was told by Unity support as well. Not a regression after all I guess.

    Btw, Unity support asked for some example use cases to justify adding this. I'll copy + paste my response here:
    • Many keyboards and mice have extra programmable buttons that don't correspond to any of the standard keys. Gamers often bind these programmable buttons to F13-F24. See for example the Corsair Scimitar RGB Elite.
    • It is often useful to have "virtual keys" that can have their input controlled by software, without worrying about interference with any hardware. This allows other software to interface with the game software without any special programming on the game's part.
    • Some keyboards genuinely still have additional function keys. One of my players requesting this feature has a keyboard that goes up to F19.
     
  9. XJDHDR

    XJDHDR

    Joined:
    Mar 31, 2020
    Posts:
    19
    Just wanted to add that there are, indeed, keyboards that have these physical keys.

    I'm not sure about Unity's backend support, but I can assure you that there is OS support for these keys. Windows fully supports all 12 of the extra function keys. As for MacOS and Linux, the only info I've been able to find is this Mozilla API document. It's logical to assume that MacOS supports F13 - F19, since Apple is selling keyboards with those keys, but I'm not sure about Linux or the other F keys on Macs.

    I'm curious. Which backends exactly are Unity using for their input systems?
     
    cxode likes this.
  10. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    1,862
    I am on MacOS, I can hit my F15 key to set up a hotkey and it sets the hotkey shortcut text to "F15", but it does not seem to be detected otherwise. On my Logicool keyboard, the F15 is decorated as the Pause/Break key. On other keyboards, these upper F-keys may be decorated as media controls or other shortcuts, but they can be assigned to anything you want them for.
     
    cxode likes this.