Ported the half of the PCem mouse fix that was not already present on 86Box.
This commit is contained in:
@@ -633,6 +633,7 @@ kbd_poll(void *priv)
|
|||||||
if ((dev->out_new != -1) && !dev->last_irq) {
|
if ((dev->out_new != -1) && !dev->last_irq) {
|
||||||
dev->wantirq = 0;
|
dev->wantirq = 0;
|
||||||
if (dev->out_new & 0x100) {
|
if (dev->out_new & 0x100) {
|
||||||
|
if (mouse_scan) {
|
||||||
#ifdef ENABLE_KEYBOARD_AT_LOG
|
#ifdef ENABLE_KEYBOARD_AT_LOG
|
||||||
kbd_log("ATkbd: want mouse data\n");
|
kbd_log("ATkbd: want mouse data\n");
|
||||||
#endif
|
#endif
|
||||||
@@ -644,6 +645,8 @@ kbd_poll(void *priv)
|
|||||||
dev->status &= ~STAT_IFULL;
|
dev->status &= ~STAT_IFULL;
|
||||||
dev->status |= STAT_MFULL;
|
dev->status |= STAT_MFULL;
|
||||||
dev->last_irq = 0x1000;
|
dev->last_irq = 0x1000;
|
||||||
|
} else
|
||||||
|
keyboard_at.out_new = -1;
|
||||||
} else {
|
} else {
|
||||||
#ifdef ENABLE_KEYBOARD_AT_LOG
|
#ifdef ENABLE_KEYBOARD_AT_LOG
|
||||||
kbd_log("ATkbd: want keyboard data\n");
|
kbd_log("ATkbd: want keyboard data\n");
|
||||||
|
Reference in New Issue
Block a user