Hey, i was wondering how to use C++ to move my mouse cursor using my keyboard buttons, I use linux, and was wondering how to do that.
Hey, i was wondering how to use C++ to move my mouse cursor using my keyboard buttons, I use linux, and was wondering how to do that.
SendInput Function (Windows)
Simpler, but deprecated:
mouse_event Function (Windows)
EDIT:
Sorry, I forgot you meant Linux.
Last edited by kmdv; 01-31-2011 at 11:15 AM.
Thanks a lot Soma, exactly what i required.
Could you just tell me this, will i require extra libs to make it work? I use fltk, and can i use the xlibs from there, because it is built on top of it unless i am mistaken. And could you please point me to some sample code on Xwrappointer?
Thanks a lot.
Last edited by AJk101; 01-31-2011 at 03:20 PM.
another function is the
SetCursorPos Function (Windows)Code:SetCursorPos( x, y )