Comments (5)
Hey, I can't seem to get the callback to fire even before creating more screens. Could you please share a code snippet that works for getting the event? I'm also using SDL.
from lvgl.
LV_EVENT_PRESSED
is not propagated to displays. It shall be used with a widget. E.g.
lv_obj_add_event_cb(scr, event_handler, LV_EVENT_PRESSED, nullptr);
from lvgl.
LV_EVENT_PRESSED
is not propagated to displays. It shall be used with a widget. E.g.lv_obj_add_event_cb(scr, event_handler, LV_EVENT_PRESSED, nullptr);
However, if I want to handle the global touch event, I have to put my code to every created screen.
Another use case is I can easily hook the touch event on display if it can handle the touch event, and then I can implement the disable / enable touch feature. I can prevent the touch event being dispatched to the screens.
Although I can directly get the touch event from the indev, but I think its better to make all application code to depends on LVGL library so that it can be cross-platform.
from lvgl.
Hey, I can't seem to get the callback to fire even before creating more screens. Could you please share a code snippet that works for getting the event? I'm also using SDL.
Sorry for confuse you, actually it doesn't work. The display object cannot receive the touch event as kisvegabor metioned.
from lvgl.
I found an alternative way to receive the global touch event. That is lv_indev_add_event_cb(). So, I closed this issue.
from lvgl.
Related Issues (20)
- Bar rotates automatically to horizontally if width>heigth HOT 3
- Compilation error using VG-Lite HOT 9
- [NOT A BUG] Label of List can't be centered. HOT 2
- [scale] Be able to configure the part drawing order HOT 2
- LVGL Forum SPAMMER HOT 6
- Object Rotation for Binary Images HOT 5
- Incomplete implementation of lv_canvas_set_px() for indexed color format HOT 5
- Compilation error using PXP HOT 16
- Draw line using VG-Lite HOT 5
- Mosaic HOT 2
- Scrolling does not respect padding of parent. HOT 5
- Automatioc check for broken links in documentation HOT 4
- How to display Thai on the interface HOT 5
- Recoloring in V9 HOT 1
- ESP32 Rotate doesn't work HOT 3
- ESP32-3248S035C with GT911 touch chip, arduino demo compile error HOT 14
- How can LVGL be better used on wayland/ DRM-enabled SoCs?
- have the C++ version image convert tool and font generate tool? HOT 9
- lv_demo_widgets example in windows, get stuck and break! HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lvgl.