home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!rpi!gatech!news.ans.net!cmcl2!adm!news
- From: andreas@sfb256.iam.uni-bonn.de (Andreas Wierse)
- Newsgroups: comp.sys.sgi
- Subject: Re: Possessed Mice and Reality Engines
- Message-ID: <34586@adm.brl.mil>
- Date: 12 Dec 92 11:53:08 GMT
- Sender: news@adm.brl.mil
- Lines: 56
-
- In article <LAU.92Dec10121624@sunset.ai.sri.com> lau@sunset.ai.sri.com (Stephen Lau) writes:
- >
- >I'm working on a Reality Engine set in 1600x1200 mode. Every once
- >in a while an application will cause the mouse be locked in
- >1280x1024 mode. The mouse doesn't want to go beyond the
- >1280x1024 barrier which means any windows or icons outside this
- >region becomes inaccessible.
- >
- >The applications that cause this aren't just third-party applications,
- >some of the SGI demos do this and Showcase does it too. The only
- >way to reset the mouse is to log out. I've tried restarting the window
- >manager and that doesn't help.
- >
- >Does anyone know of a way to reset the mouse when it happens? Logging
- >out is annoying because it always seems to happen when I have several
- >things going on at the same time and don't want to start them all up
- >again.
- >
-
- try to write a little programme which makes a call to setvaluator.
- With this call You can specify the region in which the mouse is allowed
- to move.
- It should be something like :
-
- #include <gl.h>
- #include <device.h>
-
- main()
- {
- noport();
- winopen("free my mouse");
-
- setvaluator(MOUSEX,800,0,1599);
- setvaluator(MOUSEY,600,0,1199);
- }
-
- (I just type it out of my head, maybe it doesn't compile directly, but
- the setvaluator call is that does it. Just checked it, it works for me)
-
- If You have locked Your mouse again, simply call this little programme.
- If You have no shell window in Your locked 1280 * 1024 region You can
- login remote and call it then.
-
- As far as I remember, setvaluator didn't work for some early 4.0.X
- releases, but with 4.0.5F it's definitely ok again. In the good old 3.X
- days, gclear used to set the mouse free again, but this doesn't work
- since 4.0. :-(
-
- Hope this helps
-
- --
- Andreas Wierse | Institute for Computerapplications II
- | Dep. Computersimulation and Visualization
- wierse@rus.uni-stuttgart.de | Computer Center University of Stuttgart
- Tel.: ++49-711-685-5796 | Allmandring 30
- Fax: ++49-711-682357 | D-7000 Stuttgart 80 Germany
-