Search Unity

Keyboard input issue with 2018.3.2f1

Discussion in 'Linux' started by martins_mozeiko_lgsvl, Jan 24, 2019.

  1. martins_mozeiko_lgsvl

    martins_mozeiko_lgsvl

    Joined:
    Jan 16, 2019
    Posts:
    6
    I have some issues with input getting "stuck" on Linux with 2018.3.2f1 version (project upgrade from 2018.2.4f1).

    Even if I create new empty scene, add new empty object and following script, the issue is still there.
    Code (CSharp):
    1.     void Update()
    2.     {
    3.         Debug.Log($"{Input.GetKey(KeyCode.UpArrow)}");
    4.     }
    By default this prints "False", but whenever I press Up arrow key, it starts printing "True" and never stops. Even when key is released.

    Any workarounds for this?
     
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,618
    If it's a bug in 2018.3 that didn't exist in an earlier release, then you probably found a regression.

    In this case, could you please submit a bug-report, including a project to reproduce the issue, as described in this document:
    https://unity3d.com/unity/qa/bug-reporting

    Submitting a bug-report allows Unity Technologies to take a look at this issue.

    After you submitted the bug-report, you receive a confirmation email with a bug-report Case number. You can post this Case number (the number only, not the link) in this forum thread for Unity staff to pick up, in case they see it.
     
  3. martins_mozeiko_lgsvl

    martins_mozeiko_lgsvl

    Joined:
    Jan 16, 2019
    Posts:
    6
    Peter77 likes this.
  4. martins_mozeiko_lgsvl

    martins_mozeiko_lgsvl

    Joined:
    Jan 16, 2019
    Posts:
    6
    2019.1.0b2 fixes this issue. Now keyboard input works in the game.

    Although now there is a new issue - cannot use WASD or mouse wheel to navigate the scene in editor. Main camera is completely stuck in place...
     
    PixelJ likes this.
  5. PixelJ

    PixelJ

    Unity Technologies

    Joined:
    Nov 1, 2018
    Posts:
    216
    If you open/close the editor does this still happen?
     
  6. martins_mozeiko_lgsvl

    martins_mozeiko_lgsvl

    Joined:
    Jan 16, 2019
    Posts:
    6
    Ok, that makes it work

    Basically this is what I see:
    1) Launch editor and open scene.
    2) Keyboard navigation + mouse wheel works
    3) Play to launch the game
    4) Keyboard navigation + mouse wheel works
    5) Stop the game
    6) Now keyboard navigation DOES NOT work. Sometimes mouse wheel works, sometimes not.