This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
biggest yikes's profile picture

Windows 8 Button Detection

Started by biggest yikes, 15 July 2015 - 07:59 PM
biggest yikes #1
Posted 15 July 2015 - 09:59 PM
Windows 8 and 8.1 keyboards add some new key shortcuts. On my keyboard it's the home button, some mail button, the PC button, and the calculator button.
Right now, the only way to tell if these keys are run is to detect the event key_up with a parameter of 0.
However, all of the buttons yield this result, meaning it's impossible to detect a specific one of these buttons, and the detection is very shaky.
Can there be an easy to detect if these Windows 8 buttons are pressed on compatible machines?
Cranium #2
Posted 15 July 2015 - 10:05 PM
I'd say not likely unless LWJGL changes how they handle these events. Currently, ComputerCraft uses this layout to determine key events.
H4X0RZ #3
Posted 15 July 2015 - 10:22 PM
It's pretty much impossible. Because then everyone with a keyboard that has "Function Keys" and/or media keys, wants the same.

With media keys I also mean stuff like a key which opens the Explorer, or the search bar.