CompuServe Thread

#Mouse in 3DS ?

2 messages in this thread
#110238From: Pavel KorenskyJun 29, 1994 4:45 AM
Jonas, I would like to ask you, if there is any possibility how to make my own mouse driver in IPAS routine. I have the following problem. For my MGA preview, I need the mouse support. The problem is, that I am using my own screen (display mode is changed during IPAS) and I cannot use the mouse cursor from 3DS. Matrox card has the possibility to use hardware mouse cursor, but I need to read mouse coordinates. I would like to install my own routine for updating the mouse position, because I cannot use the normal mechanism of pooling mouse coordinates. Thank you PavelK
#110244From: Gus GrubbaJun 29, 1994 5:54 AM
You have access to whatever you want. If you want to support mouse only, just save the mouse state and establish your own mouse handling routine through interrupt 33h. After you're done, restore the mouse state and 3D Studio won't even know it had ever lost control over the mouse. The only draw back is that if the user is using a tablet instead of a mouse and you want to support it, you will have to write code for that as well. Though it isn't any rocket science to implement tablet drivers, it becomes a little messy to query all the different options. I guess the easiest approach would be to parse 3ds.set yourself and check what kind of pointing device is being used. If it's mouse, good, just start poking around int 33h. If it's a tablet, check for SUMMA and write your own Summagraphics code (no big deal). If it's an ADI, tough luck. Tell the user you're sorry… <g>