]> git.tdb.fi Git - libs/gui.git/blob - source/input/keyboard.cpp
Add missing initializer
[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         window(w)
10 {
11         name = "Keyboard";
12
13         buttons.resize(N_KEYS_, false);
14
15         window.signal_input_event.connect(sigc::mem_fun(this, &Keyboard::input_event));
16 }
17
18 Keyboard::~Keyboard()
19 { }
20
21 } // namespace Input
22 } // namespace Msp