CuteMouse v2.1b4 - support for 2 mice? OptiMAME/OptiMouse (Announce)
> Thanks for this update Japheth
Indeed thanks Japheth.
> I have a request,
Likewise, I remembered there was modified branch of CuteMouse called OptiMAME aka OptiMouse aka "MAME extended mouse driver" by arcadecontrols.com's DOS cabinet guru Andy Geez (aka Andrew Lewis) which was based on CuteMouse v1.6 source and supported 2 mice for DOS MAME.
I stumbled across Optimouse one day years ago and used it to added experimental 2nd mouse support to one of my own DOS programs. How to re-use it outside of MAME wasn't documented but it was possible to quickly work this out by simply looking at the OptiMouse source code. In brief it worked by extending Cutemouse's Int 33h handler slightly as I have partly show below:
;ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß
; INT 33 handler
;ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ
handler proc far
cmp ax,1fh ; needed for unloading to work correctly
je @@do
cmp ax,100 ; calls >=100 are secondary mouse driver
jb @olddriver ; hack to make it call the existing driver
sub ax,100 ; call to secondary driver
cmp ax,26h ; is it implemented?
ja @checkother ; jump if not
@@do:
.
.
@olddriver:
;------------ Old handler
IFz <cs:word ptr oldint33[2]>,@iret ; is there another
; INT 33 handler?
jmp cs:oldint33 ; call it if there is
Note: This is an rewritten post as I had trouble relocating OptiMouse as it has now been removed from the MAME site, see comments on Optimouse link above. Nor is there any clear mention of Optimouse on either the MAME previous version docs or old releases) pages. [EDIT] seems Windows MAME now uses cpnmouse? [/EDIT]
Still I have re-located Optimouse now and since this mod is very simple, I am wondering if you would thus be happy to include this useful mod into your new updated CuteMouse driver? (perhaps via an option?) that way dual mouse support for other DOS apps can be better supported going forward! Thanks!
See also this page for further information on app usage.
Also note in source "null proc" and a few other changes for other controllers.
Complete thread:
- CuteMouse v2.1b4 - some fixes - Japheth, 09.08.2010, 07:18 (Announce)
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- CuteMouse v2.1b4 - some fixes - swf, 09.08.2010, 17:33
- CuteMouse v2.1b4 - some fixes - Japheth, 10.08.2010, 06:54
- CuteMouse v2.1b4 - support for 2 mice? OptiMAME/OptiMouse - Arjay, 10.08.2010, 09:34
- CuteMouse v2.1b4 - support for 2 mice? OptiMAME/OptiMouse - bretjohn, 10.08.2010, 18:35
- CuteMouse v2.1b4 - support for 2 mice? OptiMAME/OptiMouse - Arjay, 10.08.2010, 18:53
- support for 2 mice? - ecm, 10.08.2010, 19:04
- support for 2 mice? 3 mice etc. CPNMOUSE for Windows - Arjay, 10.08.2010, 19:32
- support for 2 mice? 3 mice etc. CPNMOUSE for Windows - ecm, 10.08.2010, 19:38
- support for 2 mice? 3 mice etc. CPNMOUSE for Windows - Arjay, 10.08.2010, 19:53
- support for 2 mice? 3 mice etc. CPNMOUSE for Windows - bretjohn, 10.08.2010, 20:20
- support for 2 mice? 3 mice etc. CPNMOUSE for Windows - ecm, 10.08.2010, 20:35
- support for 2 mice? 3 mice etc. CPNMOUSE for Windows - Arjay, 10.08.2010, 20:57
- support for 2 mice? 3 mice etc. CPNMOUSE for Windows - ecm, 10.08.2010, 21:04
- support for 2 mice? 3 mice etc. CPNMOUSE for Windows - bretjohn, 10.08.2010, 21:07
- support for 2 mice? 3 mice etc. CPNMOUSE for Windows - ecm, 10.08.2010, 21:15
- support for 2 mice? 3 mice etc. CPNMOUSE for Windows - Arjay, 10.08.2010, 20:57
- support for 2 mice? 3 mice etc. CPNMOUSE for Windows - Arjay, 10.08.2010, 20:48
- support for 2 mice? 3 mice etc. CPNMOUSE for Windows - ecm, 10.08.2010, 20:51
- support for 2 mice? 3 mice etc. CPNMOUSE for Windows - ecm, 10.08.2010, 20:35
- support for 2 mice? 3 mice etc. CPNMOUSE for Windows - ecm, 10.08.2010, 20:30
- support for 2 mice? 3 mice etc. CPNMOUSE for Windows - bretjohn, 10.08.2010, 20:20
- support for 2 mice? 3 mice etc. CPNMOUSE for Windows - Arjay, 10.08.2010, 19:53
- support for 2 mice? 3 mice etc. CPNMOUSE for Windows - marcov, 11.08.2010, 15:48
- support for 2 mice? 3 mice etc. CPNMOUSE for Windows - ecm, 10.08.2010, 19:38
- RS232 to keyboard / interesting keyboard hardware interfaces - Arjay, 10.08.2010, 20:10
- RS232 to keyboard / interesting keyboard hardware interfaces - ecm, 10.08.2010, 20:38
- RS232 to keyboard / interesting keyboard hardware interfaces - Arjay, 10.08.2010, 20:51
- RS232 to keyboard / interesting keyboard hardware interfaces - ecm, 10.08.2010, 20:57
- RS232 to keyboard / interesting keyboard hardware interfaces - Arjay, 10.08.2010, 21:11
- RS232 to keyboard / interesting keyboard hardware interfaces - Arjay, 10.08.2010, 21:20
- RS232 to keyboard / interesting keyboard hardware interfaces - ecm, 10.08.2010, 21:22
- RS232 to keyboard / interesting keyboard hardware interfaces - Arjay, 10.08.2010, 21:39
- RS232 to keyboard / interesting keyboard hardware interfaces - ecm, 10.08.2010, 21:53
- RS232 to keyboard / interesting keyboard hardware interfaces - bretjohn, 10.08.2010, 22:35
- RS232 to keyboard / interesting keyboard hardware interfaces - bretjohn, 10.08.2010, 22:08
- RS232 to keyboard / interesting keyboard hardware interfaces - ecm, 10.08.2010, 21:53
- RS232 to keyboard / interesting keyboard hardware interfaces - Arjay, 10.08.2010, 21:39
- RS232 to keyboard / interesting keyboard hardware interfaces - Arjay, 10.08.2010, 21:11
- RS232 to keyboard / interesting keyboard hardware interfaces - ecm, 10.08.2010, 20:57
- RS232 to keyboard / interesting keyboard hardware interfaces - Arjay, 10.08.2010, 20:51
- RS232 to keyboard / interesting keyboard hardware interfaces - ecm, 10.08.2010, 20:38
- support for 2 mice? 3 mice etc. CPNMOUSE for Windows - Arjay, 10.08.2010, 19:32
- Free util that supports dual Monitors under MS-DOS/FREEDOS - Arjay, 16.08.2010, 13:23
- dual PS2 keyboards (shared output) under MS-DOS/FREEDOS - Arjay, 16.08.2010, 14:19
- support for 2 mice? - ecm, 10.08.2010, 19:04
- CuteMouse v2.1b4 - support for 2 mice? OptiMAME/OptiMouse - Arjay, 10.08.2010, 18:53
- CuteMouse v2.1b4 - support for 2 mice? OptiMAME/OptiMouse - bretjohn, 10.08.2010, 18:35
- CuteMouse v2.1b4 - some fixes - Arjay, 10.08.2010, 11:08
- CuteMouse v2.1b4 - an interesting idea from Vintage Computer - Arjay, 10.08.2010, 13:13
- CuteMouse v2.1b4 - some fixes - swf, 09.08.2010, 17:33
Mix view