aboutsummaryrefslogtreecommitdiffstats
path: root/test.c
diff options
context:
space:
mode:
authorTeddy Wing2018-10-14 16:53:48 +0200
committerTeddy Wing2018-10-14 16:53:48 +0200
commitac304f65bdd7dcdac4befca1060aa7951c362727 (patch)
treeaf96f3f3bb9dca9d1c89e43a7eafd35eb2cdcc93 /test.c
parent3b2cd9bd85f92a42d927ad8c04d1c392f99e544f (diff)
downloaddome_key_event_source_simulator-ac304f65bdd7dcdac4befca1060aa7951c362727.tar.bz2
Remove hard-coded play key
Allow any special key to be simulated.
Diffstat (limited to 'test.c')
-rw-r--r--test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test.c b/test.c
index 17e1451..d1fa190 100644
--- a/test.c
+++ b/test.c
@@ -1,7 +1,8 @@
#include "dome_key_event_source_simulator/dome_key_event_source_simulator.h"
int main() {
- dkess_press_key(0, 0);
+ const int NX_KEYTYPE_PLAY = 16;
+ dkess_press_key(NX_KEYTYPE_PLAY, 0);
return 0;
}