gregersrygg
New member
Hi,
I noticed the set_media function wasn't implemented for teensy 3. It's only missing a few lines of code to work, so why not add it? Found some old threads about Windows security issues, but it would't hurt anyone to add 4 lines so it works on other platforms
With this patch it works to send media keys on Android 4.x. (Haven't tested any other OSes)
https://github.com/gregersrygg/teen...082419418097bcd98dae6f672bbe0e8c8385bab.patch
Documentation wise, it would be nice to mention that set_media doesn't allow HID Usage IDs, but only works with these pre-defined keys: KEY_MEDIA_VOLUME_INC, KEY_MEDIA_VOLUME_DEC, KEY_MEDIA_MUTE, KEY_MEDIA_PLAY_PAUSE, KEY_MEDIA_NEXT_TRACK, KEY_MEDIA_PREV_TRACK, KEY_MEDIA_STOP, KEY_MEDIA_EJEC.
Thanks,
Gregers
I noticed the set_media function wasn't implemented for teensy 3. It's only missing a few lines of code to work, so why not add it? Found some old threads about Windows security issues, but it would't hurt anyone to add 4 lines so it works on other platforms
With this patch it works to send media keys on Android 4.x. (Haven't tested any other OSes)
https://github.com/gregersrygg/teen...082419418097bcd98dae6f672bbe0e8c8385bab.patch
Documentation wise, it would be nice to mention that set_media doesn't allow HID Usage IDs, but only works with these pre-defined keys: KEY_MEDIA_VOLUME_INC, KEY_MEDIA_VOLUME_DEC, KEY_MEDIA_MUTE, KEY_MEDIA_PLAY_PAUSE, KEY_MEDIA_NEXT_TRACK, KEY_MEDIA_PREV_TRACK, KEY_MEDIA_STOP, KEY_MEDIA_EJEC.
Thanks,
Gregers