🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #2597

Re: Mouse interface to Turbo-C... Help!!!

#2597
From: Norbert Bladt
Date: Tue, 09 Oct 1990 11:41
35 lines
2109 bytes
cowgilc@mist.CS.ORST.EDU (Clayton Cowgill) writes:


>I just migrated to a PC compatible platform from certain 68000/mouse driven
>machines and am currently having problems using a microsoft compatible mouse
>in my own program written in Turbo-C.

>I'm using source code from SIMTEL20 (GMOUSE.ARC) for the int86(0x33...) stuff
>and can read and set all mouse attributes except I can't set the mouse cursor
>(graphics cursor) to look like any recognizable shape. It always looks like
>binary trash...
There is a bug in this module ! It forgot to set the ES register (it used
another register for setting the pointer to the cursor mask). In addition,
the definition for the cursor and screen masks are WRONG. (I just
use an FAR array of 16-bit integers). They don't set the cursor shape
in their tests, right ?

>Would some kind soul be generous enough to send me a working Turbo-C source
>for implementing a mouse cursor in graphics modes? Thanks in advance!!!
I fixed it, because I use this library in my programs (for private
use like you, so far). If you need these fixes, please e-mail and I will
send it to you. (I am at work right now and have the sources at home).
I got my information for setting the mouse cursor from the manual which
came with the (Genius) mouse.
Perhaps you could look at your mouse manual and fix the bug yourself
in the meantime. As I said it's just that they don't set the ES register
before they call the mouse driver.

>					-Clay
Norbert Bladt.
-- 
Please use this path as return address. DON'T USE THE RETURN PATH IN THE HEADER
Norbert Bladt, Ascom Autelca AG, Worbstr. 201, CH-3073 Guemligen, Switzerland
Phone: +41 31 52 92 14
EMail: ..!uunet!mcsun!chx400!hslrswi!bladt
Technical Details
Message-ID: <825@aut.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!cernvax!chx400!hslrswi!aut!nbladt
References: <20663@orstcs.CS.ORST.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!cernvax!chx400!hslrswi!aut!nbladt
From: nbladt@aut.UUCP (Norbert Bladt)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Mouse interface to Turbo-C... Help!!!
Message-ID: <825@aut.UUCP>
Date: 9 Oct 90 11:41:34 GMT
References: <20663@orstcs.CS.ORST.EDU>
Organization: Ascom Autelca AG, CH-3073 Guemligen Switzerland
Lines: 35