Re: Mouse IO

New Message Reply Date view Thread view Subject view Author view

From: Hugh Fisher (Hugh.Fisher++at++act.cmis.CSIRO.AU)
Date: 06/27/2000 02:38:36


> 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?

 
 XWarpPointer could be used to reposition the mouse if
 you detect that it has moved out of where you want it
 to be.

 XGrabPointer grabs all mouse input until you release
 it, even if the cursor moves outside the owning window.
 
 If you really want to get down 'n dirty with no X
 processing at all, plug a standard PC mouse into one
 of the serial ports and read the input directly.

 Hope this helps.

        Hugh Fisher
        ACSYS/CSIRO VE Lab


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Jun 27 2000 - 02:38:45 PDT

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