home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sgi / 17902 < prev    next >
Encoding:
Text File  |  1992-12-12  |  2.3 KB  |  66 lines

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