Only standard 3-byte mouse data packets are supported, so return an error for other packet sizes. MS Mouse driver versions 9.X and later use 1-byte packets for some obscure reason, and now they won't load instead of messing up.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4191
This commit is contained in:
parent
88bc1944e8
commit
45f28b12bd
1 changed files with 6 additions and 0 deletions
|
@ -905,6 +905,12 @@ static Bitu INT15_Handler(void) {
|
|||
reg_bx=0x00aa; // mouse
|
||||
// fall through
|
||||
case 0x05: // initialize
|
||||
if ((reg_al==0x05) && (reg_bh!=0x03)) {
|
||||
// non-standard data packet sizes not supported
|
||||
CALLBACK_SCF(true);
|
||||
reg_ah=2;
|
||||
break;
|
||||
}
|
||||
Mouse_SetPS2State(false);
|
||||
CALLBACK_SCF(false);
|
||||
reg_ah=0;
|
||||
|
|
Loading…
Add table
Reference in a new issue