Cleanup in content_mapblock (#5746)
[oweals/minetest.git] / src / keycode.h
index 459a85a467dfbf230b3594c2ba610b1ca33c70eb..4cd0b707e5e015fee3dd0a79549e0dc4cbc44d07 100644 (file)
@@ -34,18 +34,16 @@ public:
        KeyPress();
        KeyPress(const char *name);
 
-       KeyPress(const irr::SEvent::SKeyInput &in, bool prefer_character=false);
+       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);
+               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)
        {
@@ -70,4 +68,3 @@ void clearKeyCache();
 irr::EKEY_CODE keyname_to_keycode(const char *name);
 
 #endif
-