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) {
|
if (enabled) {
|
||||||
Window::setFocus(flag, from);
|
Window::setFocus(flag, from);
|
||||||
if(lvobj != nullptr)
|
// if(lvobj != nullptr)
|
||||||
{
|
// {
|
||||||
lv_group_focus_freeze(inputGroup, false);
|
// lv_group_focus_freeze(inputGroup, false);
|
||||||
// lv_group_focus_obj(lvobj);
|
// lv_group_focus_obj(lvobj);
|
||||||
lv_group_focus_freeze(inputGroup, true);
|
// lv_group_focus_freeze(inputGroup, true);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (flag == SET_FOCUS_BACKWARD) {
|
if (flag == SET_FOCUS_BACKWARD) {
|
||||||
|
|||||||
+2
-2
@@ -533,7 +533,7 @@ coord_t Window::getSnapStep(coord_t relativeScrollPosition, coord_t pageSize)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void lvglPushEncoderEvent(event_t evt);
|
void lvglPushEncoderEvent(event_t& evt);
|
||||||
void Window::checkEvents()
|
void Window::checkEvents()
|
||||||
{
|
{
|
||||||
auto copy = children;
|
auto copy = children;
|
||||||
@@ -545,7 +545,7 @@ void Window::checkEvents()
|
|||||||
|
|
||||||
if (this == Window::focusWindow) {
|
if (this == Window::focusWindow) {
|
||||||
event_t event = getWindowEvent();
|
event_t event = getWindowEvent();
|
||||||
lvglPushEncoderEvent(event);
|
// lvglPushEncoderEvent(event);
|
||||||
if (event) {
|
if (event) {
|
||||||
this->onEvent(event);
|
this->onEvent(event);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user