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 t开发者_如何学JAVAhem 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.
You can use the SetCursorPos function.
精彩评论