mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-02-01 09:52:25 -05:00
* EGD-3229 [FIX] UTF8 fixed uint32_t range error * EGD-3229 [util] gui::Item Navigation switch case moved to function Needed to not copy senslessly NavigationDirection enum switch case * gui::Item Navigation switch case moved to function * added NavigationDirection::None enum value * cleaned up Navigation.hpp/cpp * EGD-3229 [util] gui: InputEvent - str() for logging added & is...() check methods * EGD-3229 [util] removed notorious log on unknown glyph * EGD-3229 [util] InputMode - added is(Mode) method, input Profile added default definition * is() method addded to check instead of `==` comparison * added default to Profile instead of `== 0` use * [FIX] ARM GCC 10.1.0 - build fixed fixed include in wrong place * PR style fix * Review applied
18 lines
440 B
C++
18 lines
440 B
C++
#include "InputEvent.hpp"
|
|
namespace gui
|
|
{
|
|
|
|
InputEvent::InputEvent(RawKey key, State state, KeyCode keyCode) : key(key), state(state), keyCode(keyCode)
|
|
{}
|
|
|
|
std::string InputEvent::str() const
|
|
{
|
|
std::stringstream ss;
|
|
ss << "KeyCode: " << c_str(keyCode) << " ";
|
|
ss << "State: " << c_str(state) << " ";
|
|
ss << "short press: " << isShortPress();
|
|
return ss.str();
|
|
}
|
|
|
|
}; // namespace gui
|