Sirikata
Public Member Functions | Public Attributes
Sirikata::Input::TextInputEvent Class Reference

SDL event fired as soon as textual input has been entered. More...

#include <InputEvents.hpp>

Inheritance diagram for Sirikata::Input::TextInputEvent:
Collaboration diagram for Sirikata::Input::TextInputEvent:

List of all members.

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.

Detailed Description

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?


Constructor & Destructor Documentation

Sirikata::Input::TextInputEvent::TextInputEvent ( const InputDevicePtr dev,
char *  text 
) [inline]

Member Data Documentation

UTF-8 formatted string to be appended to an input box.


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