Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to define your own mouse?

How to define your own mouse?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 3.3k 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.
  • H Offline
    H Offline
    Habfast
    wrote on last edited by
    #1

    Hi,

    I have a device here that I want to use as a mouse. I got to make the cursor move as i wanted, but I can't propagate mouse clicks, and every Qt class for writing your own driver seems to be only for Embedded linux. Any solution(s) or idea(s)?
    I am running Qt 4.7.0 and working on windows XP.

    Thanks,
    Paul.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Franzk
      wrote on last edited by
      #2

      You'll need to write a mouse driver using the Windows SDK. Qt isn't going to be of any help there, except maybe for the configuration dialogs.

      If you can, you could also try to make it actually act like a HID USB mouse (assuming it's USB). Then you wouldn't have to write your own mouse driver.

      "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

      http://www.catb.org/~esr/faqs/smart-questions.html

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

        "Habfast" - any news about the driver that you need?

        <a target="_new" href="http://www.unknowndevicedrivers.com/">Fix Unknown Device</a>

        1 Reply Last reply
        0
        • H Offline
          H Offline
          Habfast
          wrote on last edited by
          #4

          Hi,

          nope, sorry, it didn't work out too well. I had absolutely no experience in windows driver coding.

          sorry I can't help more than that,

          H.

          1 Reply Last reply
          0
          • R Offline
            R Offline
            raja26
            wrote on last edited by
            #5

            What kind of device is that?.. How is it going to communicate with your PC?.. I have used my Nokia 6600 as an optical mouse 4 years ago!! So, I believe in nothing is impossible..

            This may not be applicable to your use case, but a small suggestion. Write a program that listens for your "device's" signals, let that Listener program convert those signals into appropriate mouse gestures... If you just need it in your application, then start the listener program on your program start up.. In case of Windows .NET will help you, I have moved my mouse cursor programmatically with the help of a "dll".. Google it!!.

            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