diff options
author | Javier <dev.git@javispedro.com> | 2022-03-13 00:43:23 +0100 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2022-03-13 00:43:23 +0100 |
commit | 0ebcd2c1c9148e8647a5b2f89654949435403058 (patch) | |
tree | 76c7f68dabfa08734cd1f13b3532bf86d6d7c6d5 /mousew16.c | |
parent | 22ceecd84d84594fb1a87e0b2448d8cf4e60e4b9 (diff) | |
download | vbados-0ebcd2c1c9148e8647a5b2f89654949435403058.tar.gz vbados-0ebcd2c1c9148e8647a5b2f89654949435403058.zip |
let VMD know the mouse type
Diffstat (limited to 'mousew16.c')
-rw-r--r-- | mousew16.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -212,6 +212,15 @@ BOOL FAR PASCAL LibMain(HINSTANCE hInstance, WORD wDataSegment, } #endif + // When running under protected mode Windows, let's tell VMD (the mouse virtualizer) + // what type of mouse we are going to be using + if (mouseflags & MOUSEFLAGS_HAS_WIN386) { + LPFN vmd_entry = win_get_vxd_api_entry(VMD_DEVICE_ID); + if (vmd_entry) { + vmd_set_mouse_type(&vmd_entry, VMD_TYPE_PS2, PS2_MOUSE_INT_VECTOR, 0); + } + } + return 1; } @@ -317,6 +326,6 @@ VOID FAR PASCAL Disable(VOID) /** Called by Window to retrieve the interrupt vector number used by this driver, or -1. */ int FAR PASCAL MouseGetIntVect(VOID) { - return 0x74; /* This corresponds to IRQ12, the PS/2 IRQ. At least in VirtualBox. */ + return PS2_MOUSE_INT_VECTOR; } |