diff options
-rw-r--r-- | common/keyboard.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/keyboard.h b/common/keyboard.h index 74b8775a0f..bdd0a2d4af 100644 --- a/common/keyboard.h +++ b/common/keyboard.h @@ -291,7 +291,7 @@ struct KeyState { return f == (flags & ~(KBD_NUM|KBD_CAPS|KBD_SCRL)); } - bool operator ==(const KeyState &x) const { + bool operator==(const KeyState &x) const { return keycode == x.keycode && ascii == x.ascii && flags == x.flags; } }; |