summaryrefslogtreecommitdiff
path: root/ps2_vusb/keyboard.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2011-02-03 13:26:44 +0900
committertmk <nobody@nowhere>2011-02-22 03:08:52 +0900
commit0632618d29dfb30c76b4e7c310dc7bee36919f63 (patch)
tree8a5b0bab7a1b46b83943e3676cf868137fd91fa7 /ps2_vusb/keyboard.h
parent4f5f1a53d449172263e83c5769c92976e0d3332e (diff)
added initial support of mousekeys to ps2_vusb
Diffstat (limited to 'ps2_vusb/keyboard.h')
-rw-r--r--ps2_vusb/keyboard.h32
1 files changed, 13 insertions, 19 deletions
diff --git a/ps2_vusb/keyboard.h b/ps2_vusb/keyboard.h
index 87c61139b9..bc6b214937 100644
--- a/ps2_vusb/keyboard.h
+++ b/ps2_vusb/keyboard.h
@@ -1,27 +1,21 @@
#ifndef KEYBOARD_H
#define KEYBOARD_H
-#include "stdbool.h"
+#include <stdint.h>
+#include <stdbool.h>
+#include "host.h"
-#define REPORT_KEYS 6
-typedef struct{
- uint8_t mods;
- uint8_t rserved; // not used
- uint8_t keys[REPORT_KEYS];
-}report_t;
+void keyboard_send(void);
+bool keyboard_has_key(void);
+void keyboard_add_mod(uint8_t mod);
+void keyboard_add_key(uint8_t key);
+void keyboard_add_code(uint8_t code);
+void keyboard_swap_report(void);
+void keyboard_clear_report(void);
+report_keyboard_t *keyboard_report(void);
+report_keyboard_t *keyboard_report_prev(void);
+#endif
-//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