infinitloop
infinitloop

Reputation: 3011

how to control mouse movement in visual c++?

I am doing a project where a regular monitor could be converted into a touchscreen. For this purpose i have designed a grid of ir sensors and installed them into a frame that could be put around the screen. That concludes the hardware.

What i want to do is control the mouse movement using the grid, so that when the user moves his/her finger inside the frame it moves the mouse on the screen. Thus giving the effect of a touchscreen. I hope I am clear in explaining my problem. I am using Windows,MS Visual C++.

If there is any suggestion other than visual C++, please let me know. Thank you.

Upvotes: 2

Views: 2549

Answers (1)

Alex F
Alex F

Reputation: 43331

You can use the SetCursorPos function.

Upvotes: 3

Related Questions