diff options
| author | Teddy Wing | 2018-10-11 17:07:04 +0200 |
|---|---|---|
| committer | Teddy Wing | 2018-10-11 17:07:04 +0200 |
| commit | f21fce30bf46105ab805b596de60568f108a59d3 (patch) | |
| tree | bd74bf58e3f16e34c01bd7ca7329915476adc242 /Cargo.toml | |
| parent | 18d499d07928a7276d45acaf7b061d4fb2a7e953 (diff) | |
| download | dome-key-map-f21fce30bf46105ab805b596de60568f108a59d3.tar.bz2 | |
Add a function to send media key events
Media keys (rewind, play/pause, fast forward on Mac function keys) are
different from normal keys. These use a different API, and sending
events to simulate those keys is different.
Here's a first stab at getting something working for posting simulated
media key events. This will be used for new special keys in mapping
actions. Haven't tested this at all yet, just happy that it finally
compiles.
Follow the two Stack Overflow answers referenced in the comments (from
Albert https://stackoverflow.com/users/133374/albert and Nick Sweeting
https://stackoverflow.com/users/2156113/nick-sweeting).
Add the `core-graphics` crate to give us access to `CGEvent`,
`CGKeyCode`, and related types.
Also include some commented `CGKeyCode` definitions for future use.
Diffstat (limited to 'Cargo.toml')
| -rw-r--r-- | Cargo.toml | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -6,6 +6,7 @@ version = "0.0.1" autopilot = "0.1.7" cocoa = "0.18.0" combine = "3.4.0" +core-graphics = "0.17.2" getopts = "0.2.18" libc = "0.2.43" log = "0.4.5" |
