November 8, 2010

Habfast Habfast
Lab Rat
2 posts

How to define your own mouse?

 

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.

4 replies

November 8, 2010

Franzk Franzk
Lab Rat
830 posts

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.

 Signature 

“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

December 13, 2011

SteveFlores SteveFlores
Lab Rat
3 posts

“Habfast” – any news about the driver that you need?

 Signature 

Fix Unknown Device

December 13, 2011

Habfast Habfast
Lab Rat
2 posts

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.

December 25, 2011

raja26 raja26
Ant Farmer
72 posts

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!!.

 
  ‹‹ [SOLVED] Hi, again :D Problem with Layouts...      Qt versions ››

You must log in to post a reply. Not a member yet? Register here!