Search Issue Tracker
Fixed in 2018.2.X
Fixed in 2017.4.X
Votes
2
Found in
2017.3.0f1
Issue ID
1003824
Regression
Yes
[Linux] Input.GetKeyUp() triggers while the key is held down in standalone build
To reproduce:
1) Create new project
2) Create C# script with this in it:
string foo = "0";
void Update() {
if (Input.GetKeyUp(KeyCode.W)) {
Debug.Log("Button is up");
foo += "1";
}
}
void OnGUI() { GUI.Label(new Rect(10, 10, 1000, 200), foo); }
3) Add it to any object in the scene
4) Play the scene
5) Hold 'W' key
Expected: Nothing is logged until you release 'W' key
6) Build and run on Linux player
7) Hold 'W' key there
Actual: Now the if is constantly true while you are holding the button
Reproduced in 2017.3.0f1 and 2018.1.0b8 Linux editors
Not reproduced in Windows Player
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Armen138
Apr 24, 2018 12:45
I can reproduce this on Ubuntu 17.10
Linux voyager 4.13.0-38-generic #43-Ubuntu SMP Wed Mar 14 15:20:44 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Unity Editor 2017.3.0f1