Git Product home page Git Product logo

Comments (8)

kisvegabor avatar kisvegabor commented on June 19, 2024

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.

Coloryr avatar Coloryr commented on June 19, 2024

I'm use is in DRM not X11, maybe these two are different.

from lvgl.

Coloryr avatar Coloryr commented on June 19, 2024
/*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.

kisvegabor avatar kisvegabor commented on June 19, 2024

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.

Coloryr avatar Coloryr commented on June 19, 2024

In drm, disp is null, but lv_indev_get_display(indev) is not null.

from lvgl.

kisvegabor avatar kisvegabor commented on June 19, 2024

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.

Coloryr avatar Coloryr commented on June 19, 2024

I have tested it, this patch is work.

from lvgl.

kisvegabor avatar kisvegabor commented on June 19, 2024

Great, thank you!

from lvgl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.