diff options
author | Max Horn | 2010-11-08 19:18:13 +0000 |
---|---|---|
committer | Max Horn | 2010-11-08 19:18:13 +0000 |
commit | 4242229c91c356bdd90c66ce8c0642488a1b4bf5 (patch) | |
tree | a021144795b76b351c51674a969dd171b8d83108 /common/keyboard.h | |
parent | 9c349cf78b21ef147ab739003d5f89d6d537c1c9 (diff) | |
download | scummvm-rg350-4242229c91c356bdd90c66ce8c0642488a1b4bf5.tar.gz scummvm-rg350-4242229c91c356bdd90c66ce8c0642488a1b4bf5.tar.bz2 scummvm-rg350-4242229c91c356bdd90c66ce8c0642488a1b4bf5.zip |
COMMON: Make KeyState::hasFlags const
svn-id: r54146
Diffstat (limited to 'common/keyboard.h')
-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 0a336c3ca5..8f93fed91c 100644 --- a/common/keyboard.h +++ b/common/keyboard.h @@ -281,7 +281,7 @@ struct KeyState { * you can write * if (keystate.flags & KBD_CTRL) { ... } */ - bool hasFlags(byte f) { + bool hasFlags(byte f) const { return f == (flags & ~(KBD_NUM|KBD_CAPS|KBD_SCRL)); } |