Thread View: comp.os.msdos.programmer
1 messages
1 total messages
Started by John Peterson
Sat, 28 Jul 1990 18:18
Using Mouse from TURBO-C Graphics?
Author: John Peterson
Date: Sat, 28 Jul 1990 18:18
Date: Sat, 28 Jul 1990 18:18
21 lines
1500 bytes
1500 bytes
I have been attempting to write a program in TURBO-C in graphics display
mode which uses my serial mouse. My mouse works fine with various commercial
software packages, and I have successfully written TURBO-C programs that
use the mouse in *text* display mode, so... I suspect the difficulty is related
to the fact that I have a Hercules card. I initialize graphics mode, set
location 0x0040:0x0049 to the value 6, then reset the mouse driver with a
call to int 0x33 function 0. I make the int 0x33 call to un-hide the mouse
cursor, it comes up just fine and everything, but when I try to return to
text mode and exit, the machine just hangs up. None of the references I have
indicate any special tricks are required here. Does anyone know what I
am doing wrong, or know of a really good programmer's reference for the
mouse???
Thanks in advance!
--
+---------- John C. Peterson ----------+
| INTERNET: peterson@crash.cts.com |
| UUCP: { nosc ucsd }!crash!peterson |
+--------------------------------------+
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads