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.

Galwegian
  • 41,475
  • 16
  • 112
  • 158

2 Answers2

7

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.

  • 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. –  Jan 22 '10 at 13:01
  • 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... – t0mm13b Jan 22 '10 at 13:08
  • 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... – t0mm13b Jan 22 '10 at 13:09
  • int33h... I used it in QuickBasic applications to add mouse support... it was definitely cool at those times! – Matteo Italia Jan 22 '10 at 13:19
1

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.

t0mm13b
  • 34,087
  • 8
  • 78
  • 110