mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-06 04:49:04 -05:00
25 lines
575 B
C++
25 lines
575 B
C++
/*
|
|
* @file InputEvent.cpp
|
|
* @author Robert Borzecki (robert.borzecki@mudita.com)
|
|
* @date 24 cze 2019
|
|
* @brief
|
|
* @copyright Copyright (C) 2019 mudita.com
|
|
* @details
|
|
*/
|
|
|
|
#include "InputEvent.hpp"
|
|
namespace gui {
|
|
|
|
InputEvent::InputEvent( const State& state, const uint32_t& keyCode, const uint32_t& keyChar,
|
|
const uint32_t& pressTime, const uint32_t& releaseTime, bool cycle, uint32_t timeout ) :
|
|
state{state},
|
|
keyCode{static_cast<int>(keyCode)},
|
|
keyChar{keyChar},
|
|
keyPressTime{ pressTime },
|
|
keyRelaseTime{ releaseTime },
|
|
cycle{ cycle },
|
|
timeout{timeout} {}
|
|
|
|
}
|
|
|