From 2df4b5385c7ae1a2d6d703b06a3749b64f216c15 Mon Sep 17 00:00:00 2001 From: Tarek Soliman Date: Wed, 12 Oct 2011 13:42:37 -0500 Subject: COMMON: Remove ascii check from KeyState::operator== ascii is used for display and text input. Operator== shouldn't be used in those cases. Besides, it breaks the keymapper for non-ascii keys like KEYCODE_LEFT --- common/keyboard.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/keyboard.h') diff --git a/common/keyboard.h b/common/keyboard.h index bdd0a2d4af..ead6ed427b 100644 --- a/common/keyboard.h +++ b/common/keyboard.h @@ -292,7 +292,8 @@ struct KeyState { } bool operator==(const KeyState &x) const { - return keycode == x.keycode && ascii == x.ascii && flags == x.flags; + // intentionally ignore ascii + return keycode == x.keycode && flags == x.flags; } }; -- cgit v1.2.3