Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Problem with absolute mouse using eglfs on Raspberry Pi

    Mobile and Embedded
    1
    1
    300
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      owe5Z last edited by

      I have developed a simple demo application for a touch screen. It should run on a raspberrypi.

      I managed to get a environment to crosscompile applications for the Pi. Everything now runs fine if I use a mouse as input device.

      If I plug in the touchscreen I can not get it to work with that. The screen is recognized as mouse with absolute coordinates. It also works on the normal desktop environment. But the qt application does not get any events.

      The output in the log is:

      qt.qpa.input: evdevkeyboard: Using device discovery
      qt.qpa.input: static device discovery for type QFlags(0x8)
      qt.qpa.input: doing static device discovery for  "/dev/input/event0"
      qt.qpa.input: doing static device discovery for  "/dev/input/js0"
      qt.qpa.input: doing static device discovery for  "/dev/input/mice"
      qt.qpa.input: doing static device discovery for  "/dev/input/mouse0"
      qt.qpa.input: Found matching devices ()
      qt.qpa.input: evdevmouse: Using device discovery
      qt.qpa.input: static device discovery for type QFlags(0x1|0x2)
      qt.qpa.input: doing static device discovery for  "/dev/input/event0"
      qt.qpa.input: doing static device discovery for  "/dev/input/js0"
      qt.qpa.input: doing static device discovery for  "/dev/input/mice"
      qt.qpa.input: doing static device discovery for  "/dev/input/mouse0"
      qt.qpa.input: Found matching devices ()
      qt.qpa.input: evdevtouch: Using device discovery
      qt.qpa.input: static device discovery for type QFlags(0x2|0x4)
      qt.qpa.input: doing static device discovery for  "/dev/input/event0"
      qt.qpa.input: doing static device discovery for  "/dev/input/js0"
      qt.qpa.input: doing static device discovery for  "/dev/input/mice"
      qt.qpa.input: doing static device discovery for  "/dev/input/mouse0"
      qt.qpa.input: Found matching devices ()
      

      If I add -plugin evdevmouse:/dev/input/event0:grab to the command line I get:

      qt.qpa.input: evdevkeyboard: Using device discovery
      qt.qpa.input: static device discovery for type QFlags(0x8)
      qt.qpa.input: doing static device discovery for  "/dev/input/event0"
      qt.qpa.input: doing static device discovery for  "/dev/input/js0"
      qt.qpa.input: doing static device discovery for  "/dev/input/mice"
      qt.qpa.input: doing static device discovery for  "/dev/input/mouse0"
      qt.qpa.input: Found matching devices ()
      qt.qpa.input: evdevmouse: Using device discovery
      qt.qpa.input: static device discovery for type QFlags(0x1|0x2)
      qt.qpa.input: doing static device discovery for  "/dev/input/event0"
      qt.qpa.input: doing static device discovery for  "/dev/input/js0"
      qt.qpa.input: doing static device discovery for  "/dev/input/mice"
      qt.qpa.input: doing static device discovery for  "/dev/input/mouse0"
      qt.qpa.input: Found matching devices ()
      qt.qpa.input: evdevtouch: Using device discovery
      qt.qpa.input: static device discovery for type QFlags(0x2|0x4)
      qt.qpa.input: doing static device discovery for  "/dev/input/event0"
      qt.qpa.input: doing static device discovery for  "/dev/input/js0"
      qt.qpa.input: doing static device discovery for  "/dev/input/mice"
      qt.qpa.input: doing static device discovery for  "/dev/input/mouse0"
      qt.qpa.input: Found matching devices ()
      qt.qpa.input: Adding mouse at "/dev/input/event0"
      qt.qpa.input: create mouse handler for "/dev/input/event0" "grab"
      

      Also I get events, but they apply only to about a quarter of the screen in the left upper edge.

      What can I do to get it properly working. Or what else can I check in order to find the error.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post