From mint-bounce@lists.fishpool.fi Tue Dec 23 11:26:53 2008 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=izfs2mJY45fxcetdnJhpT+hcuIan8kUzBoKYMGPS3pg=; b=cIYoiX/ZtJ8iNmQ0T95SCm0zwmofs4T/Tr95vB4G1hHte9s1POnT7YW/pJUl1ACXth xm9O2ysv5d3k7h7Jo8Y73omT4mJRFwwTni5RhzcRC2sfnV8kGAemiS6sbOKGQSlI4a6c kU0kattB1Mp+1v4mAyyPZZjgM9tJhuiKNGs9o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=R6iL2ws4Ucucpi3yIwJ6kD3+5X4+5K2XDY0aYw4Ic1fIU2Zw4gWW5gZX60PMh/pr4P Q9VcEdgVaJHd3a0I154T8kSw696D47oeK3fCyGzkkcy944SvbKV11w9sGHhzjHv0qsbO Y4E37gNPv9fTkSqkM1pJEJAgnHs6S9i5lnm7I= Date: Tue, 23 Dec 2008 17:23:29 +0100 From: Thomas Huth To: mint@lists.fishpool.fi Subject: Re: [MiNT] an urgent GEM question :-) Message-ID: <20081223172329.6b2125e8@phineus> In-Reply-To: <1230022147.7318.6.camel@joy> References: <1230022147.7318.6.camel@joy> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; powerpc-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: th.huth@googlemail.com Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: On Tue, 23 Dec 2008 09:49:07 +0100 Petr Stehlik wrote: > could someone please help me with this off-topic question: I'd need to > position the mouse pointer/cursor at defined coordinates on screen. I > have tried using v_dspcur(x, y) but it didn't work. Even my PureC help > file mentions that the function actually never worked. I was curious > why so I wrote the same program in GFA Basic (in case there was a bug > in PureC's GEMLIB) but the mouse cursor still not moved. > > I then resorted to a hack and implemented it using appl_tplay() which > positions the mouse pointer correctly but I am wondering what's wrong > with the v_dspcur() - is it really wrong in all VDI versions? Or am I > just calling it incorrectly? I remember having the same problem ca. 10 years ago. AFAIR there are only two reliable ways of setting the mouse pointer: 1) Use appl_tplay(), that's the clean solution 2) Poke the address into the corresponding Line-A variables, that's the ugly solution. Maybe there is also a solution using the VDI, but I also did not manage to do this at that time. You might want to have a look at the source code of appl_tplay() though to see how the AES are doing this internally. Merry X-Mas, Thomas