Open Bleuzen opened 7 years ago
If it is returning Zero it is because the media key is "Unknown." The issue is that the media keys are keyboard dependent and do not have standard codes. Let me know what the KeyEvent.rawCode is for your computer.
Raw codes: Play key: 65300 Stop key: 65301 Prev key: 65302 Next key: 65303
Edit: I tryed it with a different keyboard and the raw codes are still the same for the media keys. It seems to not depend on the keyboard.
I am running on ubuntu 18.04 and can confirm that those raw key codes match also mine (on native laptop keyboard and on external Razr keyboard)
I can confirm this is still a problem. Linux is getting a key code lookup overhaul in 2.3 so that should address this problem.
Hi, in a NativeKeyEvent, getKeyCode() returns always 0 on Manjaro Linux, when I press one of the media keys. On Windows they have a key code.
Here is my code: