]> git.tdb.fi Git - libs/gui.git/blob - source/input/keyboard.cpp
30a6145618090ea75801f8cceb994ad4bb3f9a9d
[libs/gui.git] / source / input / keyboard.cpp
1 #include <msp/graphics/window.h>
2 #include "keyboard.h"
3 #include "keys.h"
4
5 namespace Msp {
6 namespace Input {
7
8 Keyboard::Keyboard(Graphics::Window &w):
9         Device(KEYBOARD),
10         window(w)
11 {
12         name = "Keyboard";
13
14         buttons.resize(N_KEYS_, false);
15
16         window.signal_input_event.connect(sigc::mem_fun(this, &Keyboard::input_event));
17 }
18
19 Keyboard::~Keyboard()
20 { }
21
22 } // namespace Input
23 } // namespace Msp