Search code examples
event-handlingmouseeventgoogle-nativeclient

Mouse Control using Native Client


I have a doubt and I still searching how I could do this. Can I make a Native Client application that controls mouse cursor? Like this: I want to control my mouse cursor using my keyboard arrows in a Native Client application.

I would appreciate your help/direction, thanks!


Solution

  • You can't do this with a NaCl application because there is no API available to control the mouse cursor position.

    This is possible if you develop a Pepper plugin because Pepper plugins can call the native OS API, so the question becomes how do I control the mouse cursor programmatically on platform X?

    http://code.google.com/p/ppapi/

    John