Article View: rec.games.programmer
Article #1312Re: Mouse in ModeX
From: Greg Alt
Date: Thu, 01 Oct 1992 16:23
Date: Thu, 01 Oct 1992 16:23
25 lines
1982 bytes
1982 bytes
In article <80821@ut-emx.uucp>, pez@ccwf.cc.utexas.edu (Gomer Wilson) writes: >We all know that the BIOS mouse routines don't function properly in >ModeX. Has anyone successfully written mouse routines that work with >Modex? If so, could you post them here, or to an ~rFTP site, or >somesuch? Great thanks. I hacked a logitech mouse driver to work in 320x240x16, which is similar to mode X. Basically, you need to look for some kind of table which is used to set all of the info based on what graphics mode you are in. Since I was using a hacked version of mode 0dh, I changed the table for mode 0dh to have 240 vertical resolution Then you get the problem about where to store the square that is under the mouse cursor. Usually it is stored at the top of the second page (in the driver I was hacking it was). So you need to move it somewhere else... (compute the address of the top of the second page, search for it, and change it to the top of the second page in mode X. You will probably make several incorrect changes, but try doing each change one at a time, testing it each time. You might also try writing all of the important data into the BIOS table that keeps track of all of the graphics mode info, and hope that your driver looks at that instead of just using the graphics mode number. If you want something that can be used on other computers than your own, then you probably have to either write your own mouse driver, or find someone that will write one for mode X...
Technical Details
Message-ID:
<1992Oct1.102326.9692@hellgate.utah.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!caen!hellgate.utah.edu!peruvian.utah.edu!galtReferences:
<80761@ut-emx.uucp> <80763@ut-emx.uucp> <80821@ut-emx.uucp>Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!caen!hellgate.utah.edu!peruvian.utah.edu!galt From: galt%peruvian.utah.edu@cs.utah.edu (Greg Alt) Subject: Re: Mouse in ModeX Date: 1 Oct 92 10:23:25 MDT Message-ID: <1992Oct1.102326.9692@hellgate.utah.edu> Reply-To: galt%peruvian.utah.edu@cs.utah.edu Organization: University of Utah, CS Dept., Salt Lake City References: <80761@ut-emx.uucp> <80763@ut-emx.uucp> <80821@ut-emx.uucp> Lines: 25