PDA

View Full Version : Sending OS I/O interrupt signals!



nofortee
13th July 2010, 13:15
Dears,


I'm an under graduated student developing an application which use isight as gesture input to implement with 3D modeling such as sketchup on mac os x. With the combination between Qt and Opencv, could any body point me out how to take over the os mouse and keyboard while started my app.

Develop Environment:
-Mac OS 1.6 Snow Leopard
-Qt framework for UI
-Opencv for image processing

Thanks in advanced!
Tee

wysota
13th July 2010, 15:56
What do you mean by "take over"? You want all mouse events from the system to go into your app or you want to receive mouse events when your application is active?

nofortee
13th July 2010, 16:13
wysota, thanks for replying

my question might not clear enough. allow me to explain it again.

Now I have an application which can track four colors from the webcam. I made a glove that has four fingers with four different colors. The tracking is fine. Now I want to use those colors to send the mouse event to the os in order to control other stuff such as double click to open folder, move the cursor around. just behave like an input.

can I implement it?
please help me to figure it out. my english doesn't that great, if you don't understand, I will try to explain again.
Thanks you!! ^^

wysota
13th July 2010, 16:15
Qt won't help you much here, you need to do it using native API.

nofortee
13th July 2010, 16:22
Thank for your kindly reply.

If you know how to implement it or where should I start, appreciate it!
Thanks!!

wysota
13th July 2010, 16:36
I suggest starting by reading developer documentation for your OS.

nofortee
13th July 2010, 16:42
Ok! That's what I thought, but thanks for the reply!!
^^

You the man...!!