gcsaba2
January 18th, 2005, 05:18 AM
Hello,
I was wondering how would it be possible to communicate with a USB mouse so that, for example, when I click on the left button something happens. I don't want to capture messages when I click, but instead I want directly to communicate with the mouse driver. I also want events to happen when I move the mouse up, down etc.
My program should connect to the USB mouse not through some general mouse driver, but it should know exactly which mouse it's talking to. For example, I may have a single computer with 5 USB mice and 2 PS/2 mice and I want to communicate with USB mouse no.3 and handle its events.
So basicaly, what I want is:
1) access a specific USB mouse
2) handle its events
It would also be nice if I could take away control from the OS so that the cursor wouldn't move without me wanting it.
I'm using Windows ME, but if someone knows a code which works under XP it would do fine too ;)
I was wondering how would it be possible to communicate with a USB mouse so that, for example, when I click on the left button something happens. I don't want to capture messages when I click, but instead I want directly to communicate with the mouse driver. I also want events to happen when I move the mouse up, down etc.
My program should connect to the USB mouse not through some general mouse driver, but it should know exactly which mouse it's talking to. For example, I may have a single computer with 5 USB mice and 2 PS/2 mice and I want to communicate with USB mouse no.3 and handle its events.
So basicaly, what I want is:
1) access a specific USB mouse
2) handle its events
It would also be nice if I could take away control from the OS so that the cursor wouldn't move without me wanting it.
I'm using Windows ME, but if someone knows a code which works under XP it would do fine too ;)