/* * author: Patrick-Christopher Mattulat * e-mail: webmaster@lynarstudios.com */ #include using ls::atlantis::glossary::KeyboardKeys; using ls::atlantis::input::KeyStatus; KeyStatus::KeyStatus() : KeyStatus(KeyboardKeys::NONE_SELECTED, false, false) {} KeyStatus::KeyStatus(const KeyboardKeys &_key, const bool _isFreedValue, const bool _isPressedValue) : key(_key), isFreedValue(_isFreedValue), isPressedValue(_isPressedValue) {} KeyStatus::~KeyStatus() = default; KeyboardKeys KeyStatus::getKey() const { return this->key; } bool KeyStatus::getIsFreedValue() const { return this->isFreedValue; } bool KeyStatus::getIsPressedValue() const { return this->isPressedValue; } void KeyStatus::setIsFreedValue(const bool _isFreedValue) { this->isFreedValue = _isFreedValue; } void KeyStatus::setIsPressedValue(const bool _isPressedValue) { this->isPressedValue = _isPressedValue; } void KeyStatus::setKey(const KeyboardKeys &_key) { this->key = _key; }