How can i can control mouse position? (Not only in my app, but in the whole system)
How can i can control mouse position? (Not only in my app, but in the whole system)
I have a app for computer vision that "translates" the coordinates of my hand to my app, then i wanted to make it control the mouse accordinly to my hand's position and later i would like to add mouse click support. PS: Control not only mouse position for my app but for the whole OS.
That sounds like you actually want to hook into the mouse-driver interface, rather than fake it in from above. This is probably a bit harder in some ways, but it will help in other ways, because you won't have to combat with things preventing you from moving the mouse...
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
And how can i do this?
You'll have to look at the existing mouse drivers and see how they work, then work out a way to connect your device as a mouse-device - I've never done any work with mice as such, but I'm 95% sure that this is the right way to go.
There's probably a Linux Kernel mailing list group for mouse drivers or HID (Human Interface Devices).
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.