diff options
author | Bastien Bouclet | 2017-09-09 16:43:55 +0200 |
---|---|---|
committer | Bastien Bouclet | 2017-11-19 16:12:50 +0100 |
commit | 8beb519c5ea2964ce409aabbe03b54afe37e0ac1 (patch) | |
tree | 7d33e93682ddba69ffdbf3625f9a6eab2c1df98f /common | |
parent | 7689fd7308020aac0bb788cafc524bd7f01077f4 (diff) | |
download | scummvm-rg350-8beb519c5ea2964ce409aabbe03b54afe37e0ac1.tar.gz scummvm-rg350-8beb519c5ea2964ce409aabbe03b54afe37e0ac1.tar.bz2 scummvm-rg350-8beb519c5ea2964ce409aabbe03b54afe37e0ac1.zip |
EVENTS: Rename synthetic to kbdRepeat
Diffstat (limited to 'common')
-rw-r--r-- | common/events.h | 12 | ||||
-rw-r--r-- | common/recorderfile.cpp | 2 |
2 files changed, 8 insertions, 6 deletions
diff --git a/common/events.h b/common/events.h index e5bb8cab50..d5eb59fdd4 100644 --- a/common/events.h +++ b/common/events.h @@ -97,10 +97,12 @@ typedef uint32 CustomEventType; struct Event { /** The type of the event. */ EventType type; - /** Flag to indicate if the event is real or synthetic. E.g. keyboard - * repeat events are synthetic. - */ - bool synthetic; + /** + * True if this is a key down repeat event. + * + * Only valid for EVENT_KEYDOWN events. + */ + bool kbdRepeat; /** * Keyboard data; only valid for keyboard events (EVENT_KEYDOWN and * EVENT_KEYUP). For all other event types, content is undefined. @@ -120,7 +122,7 @@ struct Event { CustomEventType customType; #endif - Event() : type(EVENT_INVALID), synthetic(false) { + Event() : type(EVENT_INVALID), kbdRepeat(false) { #ifdef ENABLE_KEYMAPPER customType = 0; #endif diff --git a/common/recorderfile.cpp b/common/recorderfile.cpp index 71f8272b44..1f283715d0 100644 --- a/common/recorderfile.cpp +++ b/common/recorderfile.cpp @@ -390,7 +390,7 @@ void PlaybackFile::readEvent(RecorderEvent& event) { } break; } - event.synthetic = true; + event.kbdRepeat = true; } void PlaybackFile::readEventsToBuffer(uint32 size) { |