aboutsummaryrefslogtreecommitdiffstats
path: root/test.c
diff options
context:
space:
mode:
authorTeddy Wing2018-10-14 17:06:27 +0200
committerTeddy Wing2018-10-14 17:06:27 +0200
commit0c7cfa6f86ed576876ec71c032d02fed4820c542 (patch)
treea3465b4c82ed409bc0f3f496fc6eabe383108267 /test.c
parent3d3f6fc2359636f27b951d09c688af5820e562a2 (diff)
downloaddome_key_event_source_simulator-0c7cfa6f86ed576876ec71c032d02fed4820c542.tar.bz2
Add modifier flag capability
Test with Option-SoundDown, which opens the Sound System Preferences panel.
Diffstat (limited to 'test.c')
-rw-r--r--test.c6
1 files changed, 4 insertions, 2 deletions
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;
}