22 #ifndef FIFE_EVENTCHANNEL_KEY_H
23 #define FIFE_EVENTCHANNEL_KEY_H
313 char* converted = SDL_iconv_string(
"UTF-8",
"UTF-32",
314 const_cast<char*>(reinterpret_cast<const char*>(&
m_unicode)), 4);
315 std::string retval(converted);
KeyType
Codes for different keys.
KeyType getValue() const
Gets the value of the key.
bool isPrintable() const
Tells whether the Key can be represented as a string.
std::string getAsString() const
Gets the string representation of the key, encoded as UTF-8.
Represents a key or a character.
bool isFunctionKey() const
virtual ~Key()
Destructor.
Key(KeyType key=INVALID_KEY, uint32_t codepoint=0)
Constructor.