diff options
-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; + } }; /** |