|
|
| version 1.14, 2005/03/05 06:02:29 | version 1.15, 2005/05/20 13:59:47 |
|---|---|
| Line 183 static REG8 IOINPCALL mouseif_i7fd9(UINT | Line 183 static REG8 IOINPCALL mouseif_i7fd9(UINT |
| ret |= mouseif.rapid; | ret |= mouseif.rapid; |
| } | } |
| ret &= 0xf0; | ret &= 0xf0; |
| #if 1 | |
| ret |= 0x40; // for shizuku | |
| #else | |
| ret |= 0x50; | ret |= 0x50; |
| #endif | |
| portc = mouseif.upd8255.portc; | portc = mouseif.upd8255.portc; |
| if (portc & 0x80) { | if (portc & 0x80) { |
| x = mouseif.latch_x; | x = mouseif.latch_x; |
| Line 255 void mouseif_reset(void) { | Line 259 void mouseif_reset(void) { |
| ZeroMemory(&mouseif, sizeof(mouseif)); | ZeroMemory(&mouseif, sizeof(mouseif)); |
| mouseif.upd8255.porta = 0x00; | mouseif.upd8255.porta = 0x00; |
| mouseif.upd8255.portb = 0x00; | mouseif.upd8255.portb = 0x00; |
| mouseif.upd8255.portc = 0x10; | mouseif.upd8255.portc = 0xf0; // ver0.82 |
| mouseif.upd8255.mode = 0x93; | mouseif.upd8255.mode = 0x93; |
| mouseif.intrclock = pccore.realclock / 120; | mouseif.intrclock = pccore.realclock / 120; |
| mouseif.moveclock = pccore.realclock / 56400; | mouseif.moveclock = pccore.realclock / 56400; |
| mouseif.latch_x = -1; | |
| mouseif.latch_y = -1; | |
| } | } |
| void mouseif_bind(void) { | void mouseif_bind(void) { |