Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

CuteMouse v2.1b4 - support for 2 mice? OptiMAME/OptiMouse (Announce)

posted by Arjay, 10.08.2010, 09:34
(edited by Arjay on 10.08.2010, 12:04)

> 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:

Back to the forum
Board view  Mix view
22779 Postings in 2122 Threads, 402 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum