Centering the mouse cursor?

New Message Reply Date view Thread view Subject view Author view

Eric Heft (eheft++at++dnaco.net)
Wed, 2 Jul 1997 14:21:57 -0400 (EDT)


Hi,

This has got to be something simple. All I want to do is center the
mouse in the center of the screen before the rest of the perfly type
code. Heres what I'm trying to add in main.c

#include <gl.h>
#include <device.h>

...

 setvaluator (MOUSEX, XMAXSCREEN/2, 0, XMAXSCREEN);
 setvaluator (MOUSEY, YMAXSCREEN/2, 0, YMAXSCREEN);

...

I've tried putting the code fragment in the main and each of the
callbacks. I keep getting seg faults :(

How does one center the mouse?

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/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 2.0b2 on Mon Aug 10 1998 - 17:55:34 PDT

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