aboutsummaryrefslogtreecommitdiff
path: root/drivers/include/ps2kbd.h
diff options
context:
space:
mode:
authorFranklin Wei <frankhwei536@gmail.com>2015-02-28 20:46:37 -0500
committerFranklin Wei <frankhwei536@gmail.com>2015-02-28 20:46:37 -0500
commite81f651b15be15624d7184e1823bf5b623f11604 (patch)
treefda3d16b0245dd83f367f523042f02a0e1b14db0 /drivers/include/ps2kbd.h
parent2dc45e8cac33313e847f6097cbe2ba3bb3ceab2a (diff)
downloadkappa-e81f651b15be15624d7184e1823bf5b623f11604.zip
kappa-e81f651b15be15624d7184e1823bf5b623f11604.tar.gz
kappa-e81f651b15be15624d7184e1823bf5b623f11604.tar.bz2
kappa-e81f651b15be15624d7184e1823bf5b623f11604.tar.xz
stuff
Diffstat (limited to 'drivers/include/ps2kbd.h')
-rw-r--r--drivers/include/ps2kbd.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/drivers/include/ps2kbd.h b/drivers/include/ps2kbd.h
index dcde1d8..bf4871d 100644
--- a/drivers/include/ps2kbd.h
+++ b/drivers/include/ps2kbd.h
@@ -1,5 +1,8 @@
/* this is both a PS/2 keyboard AND a PS/2 MOUSE driver */
+#ifndef _PS2KBD_H_
+#define _PS2KBD_H_
+#include <stdbool.h>
#include <stdint.h>
#define PS2_SCROLL_LOCK (1 << 0)
@@ -16,6 +19,34 @@
#define MODIFIER_CTRL (1 << 1)
#define MODIFIER_ALT (1 << 2)
+struct ps2_specialkeys_t {
+ int shift :1;
+ int ctrl :1;
+ int bksp :1;
+ int alt :1;
+ int gui :1;
+ int numlock :1;
+ int capslock :1;
+ int scrllock :1;
+ int uparrow :1;
+ int downarrow :1;
+ int leftarrow :1;
+ int rightarrow :1;
+ int esc :1;
+ int f1 :1;
+ int f2 :1;
+ int f3 :1;
+ int f4 :1;
+ int f5 :1;
+ int f6 :1;
+ int f7 :1;
+ int f8 :1;
+ int f9 :1;
+ int f10 :1;
+ int f11 :1;
+ int f12 :1;
+};
+
/* returns which arrow keys are down */
uint8_t ps2kbd_button_get(void);
@@ -24,3 +55,5 @@ uint8_t ps2kbd_modifier_get(void);
void ps2kbd_set_leds(uint8_t status);
void ps2kbd_init(void);
+
+#endif