rag
graphic 2d engine
KeyboardManager.h
1 #ifndef Rag_KeyboardManager_h
2 #define Rag_KeyboardManager_h
3 
4 #include <rag/EventDispatcher.h>
5 
6 namespace events
7 {
8  static const std::string KEYBOARD_WILL_HIDE = "KeyboardWillHide";
9 }
10 
11 namespace rag
12 {
14 
16  {
17 
18  public:
19 
20  static const int RETURN_KEYBOARD_CODE;
21  static KeyboardManager& getInstance()
22  {
23  static KeyboardManager instance;
24  return instance;
25  }
26 
28  void nativeInsertText(std::string text);
29 
31  void nativeDeleteBackward();
32 
33  private:
34 
36 
37  };
38 }
39 
40 #endif
void nativeDeleteBackward()
When called, will generate a standard multi-platform KeyboardEvent.
Definition: KeyboardManager.cpp:20
Base class used to dispatch events.
Definition: EventDispatcher.h:14
Singleton class that dispatches Keyboard events.
Definition: KeyboardManager.h:15
Definition: Bitmap.h:8
void nativeInsertText(std::string text)
When called, will generate a standard multi-platform KeyboardEvent.
Definition: KeyboardManager.cpp:12
Definition: Event.h:11