PS/2 mouse function: allow setting mouse packet size to 4 for wheel support

TODO: make driver CTMOUSE.EXE also work with mouse type 'serial_wheel'
This commit is contained in:
Volker Ruppert 2013-06-15 21:48:23 +00:00
parent 769d35b06c
commit 53cb107dbf

View File

@ -4319,7 +4319,7 @@ BX_DEBUG_INT15("case 1: enable mouse\n");
case 5: // Initialize Mouse
BX_DEBUG_INT15("case 1 or 5:\n");
if (regs.u.r8.al == 5) {
if (regs.u.r8.bh != 3) {
if ((regs.u.r8.bh != 3) && (regs.u.r8.bh != 4)) {
SET_CF();
regs.u.r8.ah = 0x02; // invalid input
return;