Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Sep 4, 2024
1 parent 3165cd1 commit b526dba
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/project-editor/lvgl/widgets/Base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1538,19 +1538,23 @@ export class LVGLWidget extends Widget {
build.line(
`lv_obj_add_event_cb(obj, ${build.getCheckedEventHandlerCallbackName(
this
)}, LV_EVENT_VALUE_CHANGED, ${eventHandler.userData});`
)}, LV_EVENT_VALUE_CHANGED, (void *)${
eventHandler.userData
});`
);
} else if (eventHandler.eventName == "UNCHECKED") {
build.line(
`lv_obj_add_event_cb(obj, ${build.getUncheckedEventHandlerCallbackName(
this
)}, LV_EVENT_VALUE_CHANGED, ${eventHandler.userData});`
)}, LV_EVENT_VALUE_CHANGED, (void *)${
eventHandler.userData
});`
);
} else {
build.line(
`lv_obj_add_event_cb(obj, ${build.getActionFunctionName(
eventHandler.action
)}, LV_EVENT_${eventHandler.eventName}, ${
)}, LV_EVENT_${eventHandler.eventName}, (void *)${
eventHandler.userData
});`
);
Expand Down

0 comments on commit b526dba

Please sign in to comment.