aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authorTeddy Wing2018-10-11 17:07:04 +0200
committerTeddy Wing2018-10-11 17:07:04 +0200
commitf21fce30bf46105ab805b596de60568f108a59d3 (patch)
treebd74bf58e3f16e34c01bd7ca7329915476adc242 /Cargo.toml
parent18d499d07928a7276d45acaf7b061d4fb2a7e953 (diff)
downloaddome-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.toml1
1 files changed, 1 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 0d918d2..905af39 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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"