Board index » delphi » detect ps/s or serial mouse

detect ps/s or serial mouse

On 15 Nov 1995, Ronnie Lassche wrote:

Quote
> Goodday to you all,
> for an installation batch I'm making I need a little program to detect
> if the mouse attached to the computer is a ps/2 style mouse or a serial
> mouse.
> How can I do the testing for the mouse type.
> The program can not run under windows.

> Thanks in advance
> Ronnie Lassche

hi!
here's something from Ralph Brown's Interrupt List (get it, it's GREAT!)

--------M-330024-----------------------------                                  
INT 33 - MS MOUSE v6.26+ - GET SOFTWARE VERSION, MOUSE TYPE, AND IRQ NUMBER    
        AX = 0024h                                                              
Return: AX = FFFFh on error                                                    
        otherwise,                                                              
            BH = major version                                                  
            BL = minor version                                                  
            CH = type (1=bus, 2=serial, 3=InPort, 4=PS/2, 5=HP)                
            CL = interrupt (0=PS/2, 2=IRQ2, 3=IRQ3,...,7=IRQ7)                  
SeeAlso: AX=004Dh,AX=006Dh                                                      
----------8<----------8<----CUT------8<------

Adios!

------------------------------------------------------------------
        __    _     _
      _(  |__\ \   / /    Alexander Schweimler
     /  ) | __\ \ / /     Gerbertstr. 1
    / * | ||__ \ \ / *    D-79117 Freiburg
   /  * | | __| > / ***   Tel.   : +49-761-66542
  /   _ | ||__ / ^ \ *    e-mail : schwe...@ruf.uni-freiburg.de
 /___/ || |___/ / \ \
-------|  |__/_/---\_\---*--------+++++++-------------------------
    ** (______\ ***

 

Re:detect ps/s or serial mouse


Goodday to you all,
for an installation batch I'm making I need a little program to detect
if the mouse attached to the computer is a ps/2 style mouse or a serial
mouse.
How can I do the testing for the mouse type.
The program can not run under windows.

Thanks in advance
Ronnie Lassche

Other Threads