diff options
author | Max Horn | 2007-06-22 22:18:15 +0000 |
---|---|---|
committer | Max Horn | 2007-06-22 22:18:15 +0000 |
commit | c690cad67f91fea90be949e29b2d218952c79859 (patch) | |
tree | 21df48b9ee24c7097be6de458e4805585092b263 /common | |
parent | b85320fa69fd4392d1a755e2136c8db74e4ff8ff (diff) | |
download | scummvm-rg350-c690cad67f91fea90be949e29b2d218952c79859.tar.gz scummvm-rg350-c690cad67f91fea90be949e29b2d218952c79859.tar.bz2 scummvm-rg350-c690cad67f91fea90be949e29b2d218952c79859.zip |
Added constructor & reset() method to Common::KeyState
svn-id: r27634
Diffstat (limited to 'common')
-rw-r--r-- | common/events.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/events.h b/common/events.h index 92a2bda647..3263b7ab22 100644 --- a/common/events.h +++ b/common/events.h @@ -283,6 +283,12 @@ struct KeyState { * @see KBD_CTRL, KBD_ALT, KBD_SHIFT */ byte flags; + + KeyState() { reset(); } + void reset() { + keycode = KEYCODE_INVALID; + ascii = flags = 0; + } }; /** |