From 0c7cfa6f86ed576876ec71c032d02fed4820c542 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 14 Oct 2018 17:06:27 +0200 Subject: Add modifier flag capability Test with Option-SoundDown, which opens the Sound System Preferences panel. --- test.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test.c') diff --git a/test.c b/test.c index d1fa190..0e80c1a 100644 --- a/test.c +++ b/test.c @@ -1,8 +1,10 @@ #include "dome_key_event_source_simulator/dome_key_event_source_simulator.h" +#define NX_KEYTYPE_SOUND_DOWN 1 + int main() { - const int NX_KEYTYPE_PLAY = 16; - dkess_press_key(NX_KEYTYPE_PLAY, 0); + // const int NX_KEYTYPE_PLAY = 16; + dkess_press_key(NX_KEYTYPE_SOUND_DOWN, NSEventModifierFlagOption); return 0; } -- cgit v1.2.3