summaryrefslogtreecommitdiff
path: root/ps2_vusb/keyboard.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2011-01-29 00:44:05 +0900
committertmk <nobody@nowhere>2011-02-22 03:08:49 +0900
commit4f5f1a53d449172263e83c5769c92976e0d3332e (patch)
tree53c87958a30812cd548d83768c1348680e224c3d /ps2_vusb/keyboard.h
parentc07408a44784c0fdbca33567926a2c0aa4e8e17e (diff)
added PS/2 to USB converter use V-USB as protocol stack
Diffstat (limited to 'ps2_vusb/keyboard.h')
-rw-r--r--ps2_vusb/keyboard.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/ps2_vusb/keyboard.h b/ps2_vusb/keyboard.h
new file mode 100644
index 0000000000..87c61139b9
--- /dev/null
+++ b/ps2_vusb/keyboard.h
@@ -0,0 +1,27 @@
+#ifndef KEYBOARD_H
+#define KEYBOARD_H
+
+#include "stdbool.h"
+
+
+#define REPORT_KEYS 6
+typedef struct{
+ uint8_t mods;
+ uint8_t rserved; // not used
+ uint8_t keys[REPORT_KEYS];
+}report_t;
+
+
+//extern report_t *report;
+//extern report_t *report_prev;
+
+report_t *report_get(void);
+bool report_has_key(void);
+void report_send(void);
+void report_add_mod(uint8_t mod);
+void report_add_key(uint8_t key);
+void report_add_code(uint8_t code);
+void report_swap(void);
+void report_clear(void);
+
+#endif