3 This file is part of libmspgbase
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
14 Keyboard::Keyboard(Window &window)
16 buttons.resize(256, false);
18 window.signal_key_press.connect(sigc::mem_fun(this, &Keyboard::key_press));
19 window.signal_key_release.connect(sigc::mem_fun(this, &Keyboard::key_release));
22 void Keyboard::key_press(unsigned key, unsigned, unsigned)
24 set_button_state(key, true, true);
27 void Keyboard::key_release(unsigned key, unsigned)
29 set_button_state(key, false, true);