I’m trying to use the photon keyboard library to make a media controller for my Mac, however it seems that some keycodes are not being sent, or at least not being recognised by OSX.
Keyboard.click(KEY_AUDIOPLAY) as set here but that doesn’t seem to work.
I have an application on mac called Karabiner, which comes with an event viewer which displays the keycodes of buttons pressed. When I press the play key on my actual keyboard, it logs a key code of
0xCD which is mapped to keypad space in the above file, but even using that, or the hex code directly, displays nothing on the event viewer.
Other keycodes seem to work like mute for instance.
I wonder if this is just a problem with OSX (Mojave) or something I’m doing wrong.
Any help appreciated.