About mouse control in c / C ++ [ubuntu] gnome or kde ??? probably

A few questions on how to write a mouse control module in c / C ++ Any comments are greatly appreciated.

I have a mobile phone that can connect to my ubuntu 11.04 laptop over a wireless network. I installed putty for nokia symbian s60 v3.

With putty, I can execute commands like mplayer to play when I'm in my bed.

The problem is that putty cannot directly control the mouse.

I think if I can write a program that receives arrow signals from my putty and move the mouse from my desktop. Then I can control my laptop when I make a presentation through my mobile phone.

If anyone knows how to deal with this, please give me some tips. Where should I start? which is c / c ++ header / libs which i should use. Any websites or online mannals that I should pay attention to.

I run unity (based on gnome 2.3. Right?)

Thank. Guannan

+3
source share
1 answer

It is really not easy on a linux / X window system, but it can be done. Probably one of the following would be your answer:

  • configure xtest so that you can insert mouse events into the window system.

  • tell the input window manager some kind of "fake mouse" - maybe you can say that a named pipe or even pty is a serial mouse?

  • , /dev/input, -

+1

All Articles