summaryrefslogtreecommitdiff
path: root/src/kernel/dev/keyboard.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/dev/keyboard.h')
-rw-r--r--src/kernel/dev/keyboard.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kernel/dev/keyboard.h b/src/kernel/dev/keyboard.h
index 61fdbe7..4fd0b1d 100644
--- a/src/kernel/dev/keyboard.h
+++ b/src/kernel/dev/keyboard.h
@@ -58,6 +58,7 @@
#define KB_LSUPER 50
#define KB_RSUPER 51
#define KB_MENU 52
+#define KB_KPSLASH 53
#define KB_CMD_ALT 64 // any command with alt will have this flag
#define KB_CMD_CTRL 128 // any command with controll will have this flag
@@ -77,9 +78,11 @@ struct keymap {
int shiftaltgr[128];
};
+class vt;
class keyboard : public node {
private:
keymap* km;
+ vt *output;
protected:
bool num, caps, scroll;
@@ -91,8 +94,12 @@ class keyboard : public node {
public:
keyboard(node* parent);
virtual ~keyboard() {}
+
+ void outputTo(vt *vt);
void handle(int scancode, bool pressed);
+
+ int link(node* to, int mode);
};
#endif