aboutsummaryrefslogtreecommitdiff
path: root/util/wireshark
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-23 15:29:30 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-24 04:24:25 +0200
commit8c2f3bb378640c921a0ad40c4577687b0c7c37f3 (patch)
tree35d97d6c21b4b2207ec9fc8f21dc38b2435c9542 /util/wireshark
parent0ac2ce7dea133fd0b71a12ca3c2f3ce463d48440 (diff)
downloadminetest-8c2f3bb378640c921a0ad40c4577687b0c7c37f3.tar.gz
minetest-8c2f3bb378640c921a0ad40c4577687b0c7c37f3.tar.bz2
minetest-8c2f3bb378640c921a0ad40c4577687b0c7c37f3.zip
c55sound continued
Diffstat (limited to 'util/wireshark')
0 files changed, 0 insertions, 0 deletions
EYCODE_HEADER #define KEYCODE_HEADER #include "irrlichttypes.h" #include "Keycodes.h" #include <IEventReceiver.h> #include <string> /* A key press, consisting of either an Irrlicht keycode or an actual char */ class KeyPress { public: KeyPress(); KeyPress(const char *name); KeyPress(const irr::SEvent::SKeyInput &in, bool prefer_character=false); 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 CancelKey; extern const KeyPress NumberKey[10]; // Key configuration getter KeyPress getKeySetting(const char *settingname); // Clear fast lookup cache void clearKeyCache(); irr::EKEY_CODE keyname_to_keycode(const char *name); #endif