tags:

views:

154

answers:

2

I've been using DJGPP for the first time recently and can't seem to enable mouse support. What's the best way?

Thanks for any help.

+7  A: 

Gosh, this takes me back! You need the software interrupt 33H - see http://www.sentex.net/~ajy/mouseint.html, and a tutorial of sorts at http://www.writeka.com/emage/mouse_events.html.

anon
Me too...ahhhh.... interrupt 33....good times eh!
tommieb75
My best ever hack was to add mouse support for the hercules graphics mode of a commercial game, via int 33, by adding 8086 machine code to the executable using Borland's debugger. I remember feeling remarkably clever for the rest of that day.
anon
Cool! Hercules graphics - cringe...that was my first pc, with 8088 clocked to turbo 12mhz with 10Mb hard drive and 5 quarter inch floppy 360K...happy memories...That's a neat hack you did there...
tommieb75
By the way, at the time, I knew it could display graphics, and had to put on a CGA emulator to play CGA games, until I came across Moraff's world which was beautiful under Hercules and ditched the CGA emulator altogether...
tommieb75
int33h... I used it in QuickBasic applications to add mouse support... it was definitely cool at those times!
Matteo Italia
Thanks guys! That does the trick.
Galwegian
+1  A: 

Here's a comprehensive list of Int 0x33 functions here. This is from the Ralph Brown's Interrupt List, which can be found here. Also here's a link to the mouse handler for DJGPP. Also, here's a link to the MSDOS programmer FAQ here, in which you will find the information about the mouse.

Hope this helps, Best regards, Tom.

tommieb75
Thanks for that buddy.
Galwegian