From 757ed1a0945334162d253f819deb6ddd1ee18037 Mon Sep 17 00:00:00 2001 From: Stephen Kennedy Date: Mon, 21 Jul 2008 00:11:25 +0000 Subject: Moved UserAction and HardwareKey classes into their own respective header files. Added HardwareKeySet class to manage a devices set of hardware keys. Started implementing Keymapper class. svn-id: r33157 --- common/keyboard.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/keyboard.h') diff --git a/common/keyboard.h b/common/keyboard.h index 93579cbed6..a0ae941a08 100644 --- a/common/keyboard.h +++ b/common/keyboard.h @@ -259,6 +259,10 @@ struct KeyState { keycode = KEYCODE_INVALID; ascii = flags = 0; } + + bool operator ==(const KeyState &x) const { + return keycode == x.keycode && ascii == x.ascii && flags == x.flags; + } }; } // End of namespace Common -- cgit v1.2.3