home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.tek.com!vice!bobbe
- From: bobbe@vice.ICO.TEK.COM (Robert Beauchaine)
- Newsgroups: comp.lang.pascal
- Subject: Re: Mouse
- Keywords: 256 mouse
- Message-ID: <11088@vice.ICO.TEK.COM>
- Date: 8 Jan 93 20:02:03 GMT
- References: <1993Jan8.103345.3048@ms.uky.edu>
- Organization: Tektronix, Inc., Beaverton, OR.
- Lines: 57
-
- In article <1993Jan8.103345.3048@ms.uky.edu> carld@ms.uky.edu (Carl Lafferty) writes:
- >I am having a problem getting a mouse driver implemented in turbo pascal
- >6.0 to do a 256 color mouse cursor. What I have done is create a
- >mouse event handler and placed it in line with the mouse using int 33h
- >sub function $0C. I am using mode $13 for graphics and my normal mouse
- >cursor stuff works fine but I can NOT get a driver to even be called
- >that I install like this. I have resorted to having the driver simply
- >ser a variable and latching on the timer ISR.
-
- I don't see anything necessarily wrong with what you're doing
- except the part where you say you want your routine to draw the
- mouse cursor. That's a job better left to the mouse driver, which
- may be your problem. Some quick questions:
-
- 1. Are you setting the position changed bit in the event mask
- when you call function 0C? This determines what mouse events will
- generate a call to your function.
-
- 2. Is your function an interrupt handler? It should *not* be,
- but many people make the mistake of declaring it so. It *should*
- be a normal far function that modifies no registers and calls no
- DOS or BIOS functions.
-
- 3. If your function is of the correct type, are you setting the
- DS registers appropriately? Your service routine will be called
- not with your program's data segment, but with that of the mouse
- driver when your function is called.
-
- I have a (almost) complete mouse unit that may be of help to you.
- The one problem I've had (and to date no one answered my request
- for information) is missed mouse events when running under
- graphics using .BGI functions.
-
-
- >
- >What I want to do is watch for the mouse to be moved and when it is moved
- >use my routine to draw the mouse pointer. I could be doing this the
- >hardest way possible but it is the one that makes sense to me right
- >now. I am open to suggestions.
- >
- >Any and all help will be appreciated.
- >
- >Carl Lafferty
-
-
- /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-
- Bob Beauchaine bobbe@vice.ICO.TEK.COM
-
- "Look, I tried the cat experiment. On the third trial, the cat was
- dead. On each of the subsequent 413 trials, it remained dead. Am I
- doing something wrong?"
- James Nicoll
-
- Q. How many Heisenbergs does it take to screw in a light bulb?
- A. If you know the number, you don't know where the light bulb is!
-
-