Re: Mouse IO

New Message Reply Date view Thread view Subject view Author view

From: Don Burns (don_burns++at++peru.engr.sgi.com)
Date: 06/26/2000 10:07:19


Try XGrabServer(), or XGrabPointer(). You can then get pointer
motion and button events without them being delivered to
other clients (ie your window manager, for example). Be sure
and call the appropriate XUngrab...

-don

>
> Hi,
>
> Sorry this is a bit off-topic but I know how much you all love to
> help...
>
> I want to use the mouse (SGI, O2/Onyx) as an input device for an
> application. I need to switch off normal mouse behaviour and be able to
> read mouse movements and button presses directly. Reading X,Y
> coordinates from Xevents is no use as I need to suppress the normal
> X-Windows behaviour such as losing focus of a window and/or button
> presses affecting the interface.
>
> If this isn't possible can the mouse cursor be artifically repositioned
> back in the middle of a 'safe' input area so I can just keep reading
> Xevents?
>
> If anyone has any ideas/source they would be greatly appreciated
>
> Thank you.
>
> Alistair Seaton
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Jun 26 2000 - 10:07:22 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.