Open oj002 opened 4 years ago
Multimedia keys send multiple interrupts when pressed. First the code 0xe0 and than a keycode. This would make the code incorect for e.g.:
(multimedia) mute pressed -> 0xE0, 0x20 -> This would call OnKeyDown('d'). (keypad) '/' -> 0xe0, 0x35 -> OnKeyDown('-').
I just wanted to put this out there cuzz it took me quite some time to figure this out.
Multimedia keys send multiple interrupts when pressed. First the code 0xe0 and than a keycode. This would make the code incorect for e.g.:
(multimedia) mute pressed -> 0xE0, 0x20 -> This would call OnKeyDown('d'). (keypad) '/' -> 0xe0, 0x35 -> OnKeyDown('-').
I just wanted to put this out there cuzz it took me quite some time to figure this out.