Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. USB Mouse
Forum Updated to NodeBB v4.3 + New Features

USB Mouse

Scheduled Pinned Locked Moved Mobile and Embedded
11 Posts 4 Posters 6.9k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    swapnil
    wrote on last edited by
    #1

    Hey,
    I am using Qt application on TI's DaVinci TMS320DM6446 board.
    I need USB mouse to control my application.

    I have enabled all options related to USB mouse in make menuconfig. Also the usb mouse is working when we check it in /dev/input/mice on our target board.

    But on actual application, the USB mouse is not working. Pointer is visible. I am using Logitech USB Mouse, so which is the "driver" option for Logitech Mouse in command

    export QWS_MOUSE_PROTO=driver:/dev/input/mice

    Do I have to insert closeMouse(),openMouse () functions ?

    Does Qt support only for PS2 mouse ?

    Thanks in advance.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Scylla
      wrote on last edited by
      #2

      Have you checked that device is present in "/dev" folder? You can test the device in a console with "od /dev/yourdevice". If there is no output, you have the wrong device!

      1 Reply Last reply
      0
      • S Offline
        S Offline
        swapnil
        wrote on last edited by
        #3

        We checked the USB Mouse with command
        "cat /dev/input/mice" on our target board.
        And it's working.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Scylla
          wrote on last edited by
          #4

          bq. export QWS_MOUSE_PROTO=driver:/dev/input/mice

          Which driver have selected? This drivers are included: IntelliMouse, Microsoft, VR41xx, LinuxTP, Yopy, Tslib.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            swapnil
            wrote on last edited by
            #5

            We tried with MouseMan....Because it is related with Logitech....

            But that didn't work.

            Thanks.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              Scylla
              wrote on last edited by
              #6

              Why you didn't try all? Maybe another one works!?!? I'm always try all, why not!

              1 Reply Last reply
              0
              • S Offline
                S Offline
                swapnil
                wrote on last edited by
                #7

                Yes, I tried, same result with all.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  Scylla
                  wrote on last edited by
                  #8

                  Did you try without setting QWS_MOUSE_PROTO? So qws tries its default devices?

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    swapnil
                    wrote on last edited by
                    #9

                    Yes, I did it too.

                    And also I tried for QWS_MOUSE_PROTO=Auto:/dev/driver/mice
                    In that sense it's not trying for default devices.
                    Thanks..

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      CarlStenquist
                      wrote on last edited by
                      #10

                      Is there anyone who knows if there is anyway to interface to a HID device (e.g. mouse, keyboard) via Qt in Windows?
                      THANKS

                      P.S. I'm not really a "lab rat". Just an applications engineer.

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        Hi,

                        You should rather open a new thread with your question rather than dig old unrelated thread, you'll have more chance to have an answer.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved