diff options
author | Teddy Wing | 2018-10-13 17:58:24 +0200 |
---|---|---|
committer | Teddy Wing | 2018-10-13 17:58:24 +0200 |
commit | d1954a7d49d010929f0444d4127dfe130a890a8e (patch) | |
tree | 1e277231a942a5493b4c3a108cc29a0993c0a5c9 /lib | |
parent | a870c8c6f8a164bf2f46d513bb5ffab95f5c4d90 (diff) | |
download | DomeKey-d1954a7d49d010929f0444d4127dfe130a890a8e.tar.bz2 |
Test code to press the "play" media key
Based on code from Albert https://stackoverflow.com/users/133374/albert
and Nick Sweeting https://stackoverflow.com/users/2156113/nick-sweeting
on Stack Overflow:
- https://stackoverflow.com/questions/11045814/emulate-media-key-press-on-mac/11048135#11048135
- https://stackoverflow.com/questions/10459085/cocoa-simulate-macbook-upper-keys-multimedia-keys/50574159#50574159
Proof of concept code that simulates a key press of the "play" media
key. Worked basically on the first try here, after the Rust version of
the code giving me so much segfault hell.
Going to adapt this to a generic function that I can pass as a pointer
to the Rust code to call to send a media key event.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions