-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Gdx.input.isKey(Just)Pressed(Keys.BACKSLASH), doesn't seem to work on Linux Mint 18 KDE Edition #4533
Comments
Same code doesn't work on Ubuntu 16.01 LTS too |
It listens to ' \ ' pressed , but return keycode = '0' when checked using input processor , Strangely "if(Gdx.input.isKeyJustPressed(Keys.BACKSLASH)||Gdx.input.isKeyJustPressed(Keys.UNKNOWN))" the method still does not work on Ubuntu , |
Which backend is this? |
2 |
No updates on this? |
As seen here, justPressedKeys is not updated for What happens here is that libGDX has no known mapping from the Lwjgl reported The solution would be to check which After that is done, you will have to listen to that code instead of |
Any news about this? I'm having the same behaviour, spacebar, arrow keys, escape... all returning as |
Issue details
Gdx.input.isKeyJustPressed(Keys.BACKSLASH) and Gdx.input.isKeyPressed(Keys.BACKSLASH) wont work on Linux Mint 18 KDE Edition, on windows it works fine, but on Linux it doesn't give any output. KeyUp and KeyDown from InputProcessor won't respond to backslash although KeyTyped will respond appropriately, thus a workaround is to check when KeyTyped returns '\'.
I tested this with the same keyboard layout and using Linux Mint 18 KDE Edition and Windows 10
The backslash will work to open (for example) CSGO's console.
Reproduction steps/code
Then try pressing backslash (I am using an PT-PT Keyboard layout so the backslash key is above tab)
Version of LibGDX and/or relevant dependencies
1.9.5
Stacktrace
N/A
Please select the affected platforms
The text was updated successfully, but these errors were encountered: