diff rvinterf/asyncshell/oneshot.c @ 398:8c7e86bc137e

fc-shell: added key commands for sending keystrokes via MMI CONFIG sysprims
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Mar 2018 00:52:40 +0000
parents bbc41034f14c
children 10f4062e049b
line wrap: on
line diff
--- a/rvinterf/asyncshell/oneshot.c	Thu Mar 15 04:59:32 2018 +0000
+++ b/rvinterf/asyncshell/oneshot.c	Fri Mar 16 00:52:40 2018 +0000
@@ -9,6 +9,9 @@
 #include "limits.h"
 #include "exitcodes.h"
 
+extern int cmd_key_oneshot();
+extern int cmd_keydown_oneshot();
+extern int cmd_keyup_oneshot();
 extern int cmd_poweroff();
 extern int cmd_send_oneshot();
 extern int cmd_sp_oneshot();
@@ -22,6 +25,9 @@
 	int maxargs;
 	int (*func)();
 } cmdtab[] = {
+	{"key", 1, 1, cmd_key_oneshot},
+	{"keydown", 1, 1, cmd_keydown_oneshot},
+	{"keyup", 1, 1, cmd_keyup_oneshot},
 	{"poweroff", 0, 0, cmd_poweroff},
 	{"send", 1, MAX_PKT_TO_TARGET, cmd_send_oneshot},
 	{"sp", 2, 2, cmd_sp_oneshot},