[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Function MGetVerType - get software version and mouse type
Syntax unsigned int MGetVerType(void);
Prototype in mousehk.h
Remarks determines the mouse software version and the mouse
type.
_mouse1 is the major version number of the mouse
software
_mouse2 is the minor version number of the mouse
software
_mouse3 is the type of mouse, where:
1 = bus
2 = serial
3 = InPort
4 = PS/2
5 = HP
_mouse4 is the interrupt request line used by the
mouse, where:
0 = PS/2
2..7 = IRQ2..IRQ7
Return value returns the version number in the form major/minor
where the high byte is the major version number and
the low byte is the minor version number. If an
error occurred, 0xFFFF is returned and the mouse
variables _mouse# (# = 1 to 4) are all set to 0.
Note The global variables _mouse# do NOT return
registers on a 1-to-1 basis for this function.
Rather, _mouse1/_mouse2 form the BX register and
_mouse3/_mouse4 form the CX register.
Example see demomous.c
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson