Comments (8)
I've checked in SDL's docs that for SDL_FINGER*
events really event->tfinger
shall be used. If SDL doesn't set the Window ID we cannot do much.
Can you ask it from the SDL developers?
from lvgl.
I'm use is in DRM not X11, maybe these two are different.
from lvgl.
/*Find a suitable indev*/
lv_indev_t * indev = lv_indev_get_next(NULL);
while(indev) {
if(disp != NULL) {
if(lv_indev_get_display(indev) == disp) {
break;
}
}
if(lv_indev_get_type(indev) == LV_INDEV_TYPE_POINTER) {
break;
}
indev = lv_indev_get_next(indev);
}
I have modified the lv_sdl_mouse.c
code, that it can work properly.
after:
I found that my code was written incorrectly, and I have corrected it.
from lvgl.
I have modified the lv_sdl_mouse.c code, that it can work properly.
What is the difference? It seems to your code does the same thing, just the if
is split into 2 parts. Am I missing something?
from lvgl.
In drm, disp
is null, but lv_indev_get_display(indev) is not null.
from lvgl.
This way always the first POINTER indev will be found. Which is better nothing, but worth mentioning.
I've opened #6194 to fix it.
from lvgl.
I have tested it, this patch is work.
from lvgl.
Great, thank you!
from lvgl.
Related Issues (20)
- Adding border to different sides HOT 2
- Lottile on web pages https://docs.lvgl.io/master/widgets/lottie.html ,there is no button to view the C code
- Slider only changes value when moved HOT 2
- Tiny TTF lib: lv_tiny_ttf_set_size() should be removed or clear the cache HOT 14
- Input device driver callback is not working HOT 1
- X11 driver not correctly working (or I am doing it wrong) HOT 4
- Funky code in the indev pointer driver for handling rotation HOT 7
- Online Font Converter fonts not displaying correctly HOT 14
- simple container of radius one shows mixed color HOT 2
- Can lvgl support copying and pasting text using the mouse on Windows? HOT 1
- Possible bug in font-converter (or rendering text) HOT 5
- Demos widget 'Monthly Target' crashes on Elecrow ESP32 S3 Terminal HOT 5
- Tabview scrolling issue HOT 5
- The calendar component date in v8.3 version can only be displayed up to 2023. HOT 4
- Make the NuttX drivers even simpler HOT 4
- lv_image_set_scale and LV_IMAGE_ALIGN_TILE cannot be effective at the same time HOT 2
- Gridnav does not send LV_EVENT_FOCUSED HOT 2
- Smooth font, Smooth display of text during rendering HOT 1
- Canvas examples HOT 3
- draw line got strange effect HOT 1
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.