CuteMouse is a DOS based, open source mouse driver, which supports many protocols of serial and PS/2 mice. It can search for a serial mouse at all COM ports or only at a specified port. An important CuteMouse feature is its small memory footprint: the resident part (TSR) occupies less than 3.5kb. CuteMouse can also install itself in upper memory, when available, without requiring external utilities such as the LH (LoadHigh) command. Modern BIOSes often make USB mice visible through the PS/2 interface if you enable "legacy" support in BIOS setup.
CuteMouse has three branches now:
- V1.9 branch uses BIOS to handle PS/2 mice.
- V2.0 branch uses direct hardware access for PS/2 mice, and supports the wheel.
- V2.1 branch uses BIOS to handle PS/2 mice but also supports the wheel, combining the best of V1.9 and V2.0. Wheel programming info is included in the v2.x packages.
RAR and ZIP commands used to generate the CuteMouse packages:
rar a -m5 -r -s -tl x.rar * and
zip -r9 -o x.zip *
The latest beta version in the 2.1 branch is v2.1 beta 4.
New in v2.1 beta 4 since v2.0 alpha 4, changes by Eric Auer:
v2.1 beta 3 - v2.1 beta 4 (July 2008)
- added debug binary, prints PS/2 debugging output during mouse init and when mouse is activated / stopped later
- Dell Inspiron 1501 touchpad has no int 15.c204 ident in BIOS, so we use PS/2 even without ident (as ctmouse 1.9)
- option /O changed from disable to enable wheel detection (only few DOS apps use wheels, and wheel is less compatible)
- option /M (disable old MouseSystems / Genius) is now the default, so there is a new option /Y to enable MouseSystems.
- lots of changes in the source code to let it compile with the MASM-ized JWASM of Japheth.de (based on OpenWatcom WASM) instead of the commercial TASM. Disabled many macros.
- this version comes with TASM and JWASMD binaries so you can compare them: ctmouse binaries are byte identical with the exception of protocol.com where I had to fix a bug.
v2.1 beta 2 - v2.1 beta 3 (June 2007)
- new mousetst binary with sources written in NASM Assembly language. Supports wheel testing, so removed wheeltst. The old BC3.1 mousetst was very un-portable to another C. Updated makefile mousetst section. New mousetst is 1kB.
- directory structure changed to something more elaborate, with bin/, doc/ctmouse/ and source/ctmouse/ with subdirectories. This also allows easy installation in FreeDOS, just unzip.
- dropped packed / unpacked distinction, but feel free to aPack binaries yourself (upx somehow refuses to compress ctmouse?).
v2.1 beta 1 - v2.1 beta 2
- new /O option to suppress wheel detection: Might improve PnP for serial mice, but main use is for PS/2. USB BIOS support usually does not support the "enable wheel protocol" handshake, and if you hotplug a mouse (NOT recommended for PS/2), it will boot in non-wheel mode. The TSR cannot detect and fix that mode change.
- made E_needvga message translateable. The message tells that this CuteMouse version does not support non-VGA plain EGA hardware.
- improved the English help message
v2.1 beta 1
- removed RIL interface: non-RIL apps caused graphics corruption
- reading VGA registers: no RIL needed but VGA hardware needed
- backup/restore VGA registers in copysprite
- replaced hardware PS/2 by BIOS PS/2 handling again for better compatibility, based on public domain source fragment by Konstantin Koll
- removed PS/2 IRQ handler by BIOS callback handler. Wheel data protocol processing again based on code from Konstantin Koll.
- removed "XMS UMB" allocate / free: only DOS UMB worked anyway
- do not disablePS2 right before enablePS2 (IRQ/settings)
- store only CRTC port (3d4/3b4), not full videoregs structure
- explicitly set "blit mode" for EGA/VGA (not for CGA/MCGA)
- introduce a handfull nop to mark interesting places in the code
- enabledriver_20 explicitly sets int10 handler to CS:.
- show error message if pre-VGA, old version only tuned videoregs if EGA
The latest alpha version in the 2.0 branch is v2.0 alpha 4.
New in v2.0 alpha 4 since v1.9.1, changes by Nagy Daniel, Jason Burgon and Arkady Belousov:
- Hardware PS/2 handling reintroduced
- Added new wheel API
- Added wheel tester utility
- Implemented INT 33/0028; the DX argument is ignored
- Reimplemented functions INT 33/001A and 001B to mimic MS Mouse behavior
- Changed semantics of the /R command line option: its arguments multiplied by 10 and passed to 001A function
- Cleaned and optimized source code and fixed many bugs
The latest version in the 1.9 branch is v1.9.1.
New in v1.9.1 since v1.8, changes by Arkady Belousov, Maurizio Spagni, Donald Davis, Jason Burgon and Nagy Daniel:
- Fixed bug in INT 33/0017; under Turbo Pascal IDE this bug caused crash in some cases. (1.9.1)
- INT 33/0005 and 0006 functions now return zero values in case of wrong button number in BX; this makes game Patrician happy. (1.9.1)
- Heavy source cleaning and optimization
- INT 33/001A and 001B functions are temporarily disabled because their descriptions in RBIL 61 don't correspond with MS Mouse behavior and this causes cursor slowdown in some applications (for example, SimCity 2000)
- For /Sn/P option combination INT 33/0024 now returns proper IRQ#
- INT 33/001F function now retains DTR and RTS UART lines active
- Removed flushing mouse data stream when detecting mouse type (this also prevents infinite loops in some cases under Windows)
- Small mouse movements are now doubled also in auto resolution mode
- Cursor redrawing routines now recall themselves if interrupt handlers try to call them while drawing routines work; this should avoid differences between seen and real cursor status in some rare cases
- LCR and MCR now preserved in UARTs for which no mouse is detected
- Added additional check for PS/2 device presence (this prevents big delay at startup in some cases under Windows)
- Added support for 286 and 386 CPUs
- Added external assembler library
- Added Dutch, French, Latvian, Polish, Slovak and Spanish message files
- Added /N command line option to force load CuteMouse as new TSR
- COMTEST utility improved (and may be used to integrate IRQ auto detection into CuteMouse)
- Added closing for all local file handles before exit (this prevents leakage from system handles pool when CTMOUSE is called with redirected output and stays TSR)
- INT 33/0024 and 006D now report driver version 7.05 instead of 6.26
- Implemented function INT 33/0031
- CTMOUSE now handles INT 10/4F02 and some INT 10/11 video functions and correctly recalculates screen size when, for example, the screen is switched to 43/50 lines text mode