diff options
Diffstat (limited to 'src/common/event.h')
-rw-r--r-- | src/common/event.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/common/event.h b/src/common/event.h index 97b798a..8aef603 100644 --- a/src/common/event.h +++ b/src/common/event.h @@ -730,16 +730,15 @@ struct Event ActiveEventData active; }; - Event(EventType type = EVENT_NULL) - { - this->type = type; - - systemEvent = false; - rTime = 0.0f; - mouseButtonsState = 0; - trackedKeysState = 0; - customParam = 0; - } + explicit Event(EventType _type = EVENT_NULL) + : type(_type) + , systemEvent(false) + , rTime(0.0f) + , kmodState(0) + , trackedKeysState(0) + , mouseButtonsState(0) + , customParam(0) + {} }; |