Thread View: alt.msdos.programmer
2 messages
2 total messages
Started by Glenn Franck
Mon, 10 Aug 1992 19:18
Help! How to integrate (Microsoft) mouse control in BC++
Author: Glenn Franck
Date: Mon, 10 Aug 1992 19:18
Date: Mon, 10 Aug 1992 19:18
26 lines
1974 bytes
1974 bytes
OK. I'm trying to figure out how to use my Microsoft mouse in the progs I'm writing. So, to that end, I'm trying to find some code (or preferably a package of routines) that will allow me to use a mouse. I'm writing in C, using Broland C++. The only package I know about so far is MOUCLIB5.ZIP, which I got from wuarchive. I don't have TASM right now, so I can't compile the code as it is. Also, it looks confusing as to which routines have to be called before others, etc. (although I haven't looked at the code in detail, I must admit). Anybody have some suggestions? Progs at an FTP site? Maybe a reference book? All help greatly appreciated. If you can e-mail me, that's the best, because I have a hard time keeping up with news. Sorry if this is in one of the FAQL's, but if it is, can somebody please tell me? Thanks! G!enn =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Glenn Franck | "Everybody's got to deviate from the norm." franck@ug.cs.dal.ca | - N. Peart, RUSH gfranck@ac.dal.ca |=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= =-=-=-=-=- Disclaimer: Pardon me for being Franck! -=-=-=-=-= =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Re: Help! How to integrate (Microsoft) mouse control in BC++
Author: Matthew Smith
Date: Wed, 12 Aug 1992 20:40
Date: Wed, 12 Aug 1992 20:40
43 lines
2749 bytes
2749 bytes
In article <Bss8BM.8qp@cs.dal.ca> franck@ug.cs.dal.ca (Glenn Franck) writes: >OK. I'm trying to figure out how to use my Microsoft mouse in the progs >I'm writing. So, to that end, I'm trying to find some code (or preferably >a package of routines) that will allow me to use a mouse. > >I'm writing in C, using Broland C++. The only package I know about so >far is MOUCLIB5.ZIP, which I got from wuarchive. I don't have TASM right >now, so I can't compile the code as it is. Also, it looks confusing >as to which routines have to be called before others, etc. (although >I haven't looked at the code in detail, I must admit). > >Anybody have some suggestions? Progs at an FTP site? Maybe a reference >book? All help greatly appreciated. If you can e-mail me, that's the >best, because I have a hard time keeping up with news. Sorry if this >is in one of the FAQL's, but if it is, can somebody please tell me? > >Thanks! >G!enn > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > Glenn Franck | "Everybody's got to deviate from the norm." > franck@ug.cs.dal.ca | - N. Peart, RUSH > gfranck@ac.dal.ca |=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > =-=-=-=-=- Disclaimer: Pardon me for being Franck! -=-=-=-=-= > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= It's actually very simple. INT 33, with various different values in the AX register. I have a mouse library that is event driven. This means, that to find out if the mouse has done anything, you need to grab a structure from an event list. Most people do it this way, however, some people prefer to have their mouse routines poll the mouse when they want to look for something rather than have every mouse event be captured by the event manager. It's a very small library. Something like 300 lines of C source, including the interrupt handler, and all of the event information. I could send it to some FTP site or something. Matt Smith msmith@peruvian.utah.edu Student - University of Utah Department of Computer Science
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