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:
committed by
Raphael Coeffic
parent
885ebe69f6
commit
3486480f36
+5
-5
@@ -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
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user