]> git.tdb.fi Git - libs/gui.git/blobdiff - source/keyboard.cpp
Plug some memory leaks
[libs/gui.git] / source / keyboard.cpp
index 4bc586ca3ff5deb0c61cccd4208e42aa8ac3e240..ab01e6261eff14eb7345de57c34e1cd0412607bd 100644 (file)
@@ -6,16 +6,16 @@ Distributed under the LGPL
 */
 
 #include "keyboard.h"
-#include "window.h"
 
 namespace Msp {
 namespace Input {
 
-Keyboard::Keyboard(Window &window)
+Keyboard::Keyboard(Graphics::Window &window)
 {
        buttons.resize(256, false);
 
        window.signal_key_press.connect(sigc::mem_fun(this, &Keyboard::key_press));
+       window.signal_key_release.connect(sigc::mem_fun(this, &Keyboard::key_release));
 }
 
 void Keyboard::key_press(unsigned key, unsigned, unsigned)