summaryrefslogtreecommitdiff
path: root/src/kernel/dev/keyboard.h
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-18 13:09:28 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-18 13:09:28 +0200
commitf56aa2f7e4b8e6430e123f714507032a33955a09 (patch)
tree0381e4cbff6e5e856a3218d811da22fa12c97fcf /src/kernel/dev/keyboard.h
parentf3e03796652b792bb3fd5d3d25b687b9a7f14633 (diff)
downloadTCE-f56aa2f7e4b8e6430e123f714507032a33955a09.tar.gz
TCE-f56aa2f7e4b8e6430e123f714507032a33955a09.zip
The keyboard handling, it's getting better. + Funny screenshot.
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