mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Pass clang-format on various cpp/header files (#5559)
This commit is contained in:
parent
0c34fe20a1
commit
91a9382c25
30 changed files with 138 additions and 183 deletions
|
@ -34,16 +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;
|
||||
|
||||
protected:
|
||||
static bool valid_kcode(irr::EKEY_CODE k)
|
||||
{
|
||||
|
@ -68,4 +68,3 @@ void clearKeyCache();
|
|||
irr::EKEY_CODE keyname_to_keycode(const char *name);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue