1 #include <msp/input/keys.h>
3 #include "systemkeyboardinput.h"
8 SystemKeyboardInput::SystemKeyboardInput(Root &r, Input::Keyboard &k):
12 keyboard.signal_button_press.connect(sigc::mem_fun(this, &SystemKeyboardInput::key_press));
13 keyboard.signal_button_release.connect(sigc::mem_fun(this, &SystemKeyboardInput::key_release));
14 keyboard.signal_character.connect(sigc::mem_fun(this, &SystemKeyboardInput::character));
17 bool SystemKeyboardInput::key_press(unsigned key)
20 if(root.key_press(key, 0))
26 bool SystemKeyboardInput::key_release(unsigned key)
28 return root.key_release(key, 0);
31 bool SystemKeyboardInput::character(StringCodec::unichar ch)
33 return root.character(ch);