rag
graphic 2d engine
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
rag::KeyboardManager Class Reference

Singleton class that dispatches Keyboard events. More...

#include <KeyboardManager.h>

Inheritance diagram for rag::KeyboardManager:
events::EventDispatcher

Public Member Functions

void nativeInsertText (std::string text)
 When called, will generate a standard multi-platform KeyboardEvent.
 
void nativeDeleteBackward ()
 When called, will generate a standard multi-platform KeyboardEvent.
 
- Public Member Functions inherited from events::EventDispatcher
void addEventListener (std::string type, EventListener *listener)
 
void dispatchEvent (Event &event)
 
bool hasEventListener (std::string type)
 
void removeEventListener (std::string type, EventListener *listener)
 

Static Public Member Functions

static KeyboardManagergetInstance ()
 

Static Public Attributes

static const int RETURN_KEYBOARD_CODE = 10
 

Detailed Description

Singleton class that dispatches Keyboard events.

Todo:
It's confusing to have a Keyboard and a KeyboardManager.

The documentation for this class was generated from the following files: