aboutsummaryrefslogtreecommitdiff
path: root/src/content_nodemeta.cpp
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-04-06 09:52:29 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-04-06 10:52:29 +0200
commit91615f9588420fd716978552fdacf1323b8df11c (patch)
tree951b1c139c09056d0d31bc4b8e0d13fd2d69c8bb /0 files changed, 0 insertions, 0 deletions
an class="hl opt">{ public: KeyPress(); KeyPress(const char *name); KeyPress(const irr::SEvent::SKeyInput &in); bool operator==(const KeyPress &o) const { return (Char > 0 && Char == o.Char) || (valid_kcode(Key) && Key == o.Key); } const char *sym() const; const char *name() const; std::string debug() const; protected: static bool valid_kcode(irr::EKEY_CODE k) { return k > 0 && k < irr::KEY_KEY_CODES_COUNT; } irr::EKEY_CODE Key; wchar_t Char; std::string m_name; }; extern const KeyPress EscapeKey; extern const KeyPress NumberKey[10]; // Key configuration getter KeyPress getKeySetting(const char *settingname);