X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Ffbdev%2Fkeyboard.cc;h=22f129a33fddc9dcb218498fdfa3b84c9e4cb6f2;hb=9261ecb0ad85bdf8b21e17b7309ddaeb76a57d96;hp=c1589bed132c078803a283d17e484e969dc8a37c;hpb=e4076629a736e957739c31cd20bbbbb70327023b;p=winnie
diff --git a/src/fbdev/keyboard.cc b/src/fbdev/keyboard.cc
index c1589be..22f129a 100644
--- a/src/fbdev/keyboard.cc
+++ b/src/fbdev/keyboard.cc
@@ -1,3 +1,24 @@
+/*
+winnie - an experimental window system
+
+Copyright (C) 2013 Eleni Maria Stea
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see .
+
+Author: Eleni Maria Stea
+*/
+
#ifdef WINNIE_FBDEV
#include
#include
@@ -12,6 +33,7 @@
#include "keyboard.h"
#include "shalloc.h"
#include "window.h"
+#include "winnie.h"
#include "wm.h"
struct Keyboard {
@@ -27,6 +49,8 @@ bool init_keyboard()
return false;
}
+ get_subsys()->keyboard_offset = (int)((char*)keyboard - (char*)get_pool());
+
keyboard->ttystate = keyboard->CANONICAL;
keyboard->dev_fd = -1;