LVGL rotarty encoder handling updated

LVGL rotary encoder handling disabled, to reenable un-comment windowcpp
Window::checkEvents the call to lvglPushEncoderEvent
This commit is contained in:
gagarinlg
2022-06-11 15:13:11 +02:00
committed by Raphael Coeffic
parent 885ebe69f6
commit 3486480f36
2 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -88,12 +88,12 @@ void FormField::setFocus(uint8_t flag, Window * from)
{
if (enabled) {
Window::setFocus(flag, from);
if(lvobj != nullptr)
{
lv_group_focus_freeze(inputGroup, false);
// if(lvobj != nullptr)
// {
// lv_group_focus_freeze(inputGroup, false);
// lv_group_focus_obj(lvobj);
lv_group_focus_freeze(inputGroup, true);
}
// lv_group_focus_freeze(inputGroup, true);
// }
}
else {
if (flag == SET_FOCUS_BACKWARD) {
+2 -2
View File
@@ -533,7 +533,7 @@ coord_t Window::getSnapStep(coord_t relativeScrollPosition, coord_t pageSize)
}
#endif
void lvglPushEncoderEvent(event_t evt);
void lvglPushEncoderEvent(event_t& evt);
void Window::checkEvents()
{
auto copy = children;
@@ -545,7 +545,7 @@ void Window::checkEvents()
if (this == Window::focusWindow) {
event_t event = getWindowEvent();
lvglPushEncoderEvent(event);
// lvglPushEncoderEvent(event);
if (event) {
this->onEvent(event);
}