Sirikata
|
SDL event fired as soon as textual input has been entered. More...
#include <InputEvents.hpp>
Public Member Functions | |
TextInputEvent (const InputDevicePtr &dev, char *text) | |
Public Attributes | |
std::string | mText |
UTF-8 formatted string to be appended to an input box. |
SDL event fired as soon as textual input has been entered.
Usually this corresponds to one ButtonPress/ButtonRelease event. However, there are some cases where they differ. This should also make use of the operating system's IME support. Either way, mText is always a UTF-8 formatted string, not a scancode.
As an example, X11 contains a special key called the MultiKey, which contains 2-key sequences for complicated characters, like Multi+a+e produces the "ae" digraph. mText will contain the single UTF-8 sequence for the specific letter produced.
FIXME: How are Backspace and Delete handled?
Sirikata::Input::TextInputEvent::TextInputEvent | ( | const InputDevicePtr & | dev, |
char * | text | ||
) | [inline] |
std::string Sirikata::Input::TextInputEvent::mText |
UTF-8 formatted string to be appended to an input box.