diff options
| author | Teddy Wing | 2018-10-14 17:06:27 +0200 |
|---|---|---|
| committer | Teddy Wing | 2018-10-14 17:06:27 +0200 |
| commit | 0c7cfa6f86ed576876ec71c032d02fed4820c542 (patch) | |
| tree | a3465b4c82ed409bc0f3f496fc6eabe383108267 /test.c | |
| parent | 3d3f6fc2359636f27b951d09c688af5820e562a2 (diff) | |
| download | dome_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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; } |
