Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!lll-winken!sun-barr!newstop!texsun!convex!rosenkra From: rosenkra@convex.com (William Rosencranz) Newsgroups: comp.sys.atari.st.tech Subject: Re: How does one relocate the Mouse ptr from pt A to B? Message-ID: <111630@convex.convex.com> Date: 17 Dec 90 21:40:57 GMT References: <9577@ncar.ucar.edu> Sender: news@convex.com Organization: Convex Computer Corporation; Richardson, TX Lines: 29 In article <9577@ncar.ucar.edu> moses@hao.ucar.edu (Julie Moses) writes: >Can someone explain how one can move the mouse location from one >x,y coordinate to another 'automatically', i.e. without having to >manually move it? i don't know what u mean by "automatically" vs "manually". you can install a new mouse position vector with vex_motn (i don't remember the exact name but this is at least close). it is called with mouse x,y in d0/d1 and you can change it. before your handler does its rts, it can change the d0/d1 based on some application-specific action, and the new coords get passed on to the AES. from that point on, the AES updates its idea of where the mouse is based on your d0.w/d1.w values. i don't know if this can be done in C. it will be non-portable at best (using asm(...) statements). i wrote my handler in assembler and have had no problems. >Will doing this cause any problems with the AES? Make it lose track >of the mouse? there should be no problems. just make sure to restore the old handler before your application finishes... -bill rosenkra@convex.com (maybe this can go in the FAQ for this newsgroup as it has been asked just recently, that is if there is a FAQ...) -- Bill Rosenkranz |UUCP: {uunet,texsun}!convex!c1yankee!rosenkra Convex Computer Corp. |ARPA: rosenkra%c1yankee@convex.com