[Solved] Getting simultaneous touch and mouse events in Qt/QML



  • Hello,

    My app works great with either touchscreen or mouse, but not both. Is it possible to have both?

    To run with a USB mouse:
    @
    export QWS_MOUSE_PROTO=IntelliMouse:/dev/input/mouse1
    ./myApp -qws
    @

    To run with touchscreen:
    @
    export QWS_MOUSE_PROTO=tslib:/dev/input/event0
    ./myApp -qws
    @

    The docs say you can specity multiple devices with QWS_MOUSE_PROTO, but this does not work:
    @
    export QWS_MOUSE_PROTO="tslib:/dev/input/event0
    IntelliMouse:/dev/input/mouse1"
    ./myApp -qws
    @

    Is there a way to make a mouse and touchscreen work at the same time?

    Thanks,
    Matt



  • heh, don't take the docs too literally! They say to use a line break in the environment variable, but it only works with a single space!!

    @
    export QWS_MOUSE_PROTO="tslib:/dev/input/event0 IntelliMouse:/dev/input/mouse1"
    ./myApp -qws
    @


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.