diff options
author | Stephen Kennedy | 2008-07-21 00:11:25 +0000 |
---|---|---|
committer | Stephen Kennedy | 2008-07-21 00:11:25 +0000 |
commit | 757ed1a0945334162d253f819deb6ddd1ee18037 (patch) | |
tree | b3bac6e2eb26c99a0e71816547996777e1406ce3 /common/keyboard.h | |
parent | 4c730401fea19d9fd32c2408315d3c3e788ff1fa (diff) | |
download | scummvm-rg350-757ed1a0945334162d253f819deb6ddd1ee18037.tar.gz scummvm-rg350-757ed1a0945334162d253f819deb6ddd1ee18037.tar.bz2 scummvm-rg350-757ed1a0945334162d253f819deb6ddd1ee18037.zip |
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
Diffstat (limited to 'common/keyboard.h')
-rw-r--r-- | common/keyboard.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |