[haiku-development] Re: Hijacking mouse + keyboard

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 03 Apr 2009 19:27:39 +0200

On 2009-04-03 at 19:23:47 [+0200], Matt <laceysnr@xxxxxxxxxxxxxx> wrote:
> 2009/4/3 Stephan Aßmus <superstippi@xxxxxx>:
> >
> > On 2009-04-03 at 12:34:24 [+0200], Matt <laceysnr@xxxxxxxxxxxxxx> wrote:
> >> Before I get ahead of myself and spend hours of researching for no 
> >> point, is it relatively easy (or at least not impossible) to hijack 
> >> mouse and keyboard messages in Haiku.
> >
> > Yes. "Hijacking" sounds like you want to write an input_server "filter" 
> > add-on.
> >
> >> Also, will it be simple enough to generate
> >> messages programatically moving the mouse cursor + clicking through 
> >> code?
> >
> > Yes. It sounds like you want to write an input_server "device" add-on. 
> > :-)
> >
> > Both of these tasks are rather easy to implement.
> 
> Excellent, thanks Stephan. Hate to ask questions that can be researched 
> but my policy is to ask when you know somebody else will able to tell you 
> much quicker than you'd be able to find out otherwise.
> 
> I'm working on porting Synergy to Haiku, I don't know if many people will 
> find it useful but I think it's a great app - lets you share a keyboard 
> and mouse between multiple machines with ease. It's network based so 
> works between supported operating systems. Got it all ready to build, 
> just need to implement the platform dependent parts - networking could be 
> fun :/

Maybe also have a look at this:

<http://www.bebits.com/app/3814>

Maybe you can reuse some parts?

Best regards,
-Stephan

Other related posts: