aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kkbd.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mds-kkbd.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mds-kkbd.h b/src/mds-kkbd.h
index fc22f2b..3fa7eca 100644
--- a/src/mds-kkbd.h
+++ b/src/mds-kkbd.h
@@ -70,6 +70,22 @@ int open_input(void);
*/
void close_input(void);
+/**
+ * Broadcast a keyboard input event
+ *
+ * @param scancode The scancode
+ * @param trio Whether the scancode has three integers rather than one
+ * @return Zero on success, -1 on error
+ */
+int send_key(int* restrict scancode, int trio);
+
+/**
+ * Fetch and broadcast keys until interrupted
+ *
+ * @return Zero on success, -1 on error
+ */
+int fetch_keys(void);
+
#endif