aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2007-06-22 22:18:15 +0000
committerMax Horn2007-06-22 22:18:15 +0000
commitc690cad67f91fea90be949e29b2d218952c79859 (patch)
tree21df48b9ee24c7097be6de458e4805585092b263 /common
parentb85320fa69fd4392d1a755e2136c8db74e4ff8ff (diff)
downloadscummvm-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.h6
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;
+ }
};
/**