-#ifndef MSP_GBASE_KEYBOARD_H_
-#define MSP_GBASE_KEYBOARD_H_
+#ifndef MSP_INPUT_KEYBOARD_H_
+#define MSP_INPUT_KEYBOARD_H_
+#include <msp/graphics/window.h>
+#include <msp/stringcodec/ustring.h>
#include "device.h"
-#include "../gbase/window.h"
namespace Msp {
namespace Input {
*/
class Keyboard: public Device
{
+public:
+ sigc::signal<void, StringCodec::unichar> signal_character;
+
private:
- Graphics::EventSource &source;
+ Graphics::Window &window;
public:
- Keyboard(Graphics::EventSource &);
+ Keyboard(Graphics::Window &);
virtual std::string get_button_name(unsigned) const;
private:
- void key_press(unsigned, unsigned, unsigned);
- void key_release(unsigned, unsigned);
+ void input_event(const Graphics::Window::Event &);
};
} // namespace Input