|
|
| version 1.15, 2005/05/20 13:59:47 | version 1.17, 2007/11/11 13:54:14 |
|---|---|
| Line 238 static REG8 IOINPCALL mouseif_i7fdd(UINT | Line 238 static REG8 IOINPCALL mouseif_i7fdd(UINT |
| if (mode & uPD8255_PORTCL) { | if (mode & uPD8255_PORTCL) { |
| ret &= 0xf0; | ret &= 0xf0; |
| ret |= 0x08; | ret |= 0x08; |
| ret |= (np2cfg.dipsw[2] >> 5) & 0x04; | ret |= (pccore.dipsw[2] >> 5) & 0x04; |
| ret |= ((~np2cfg.dipsw[0]) >> 4) & 0x03; | ret |= ((~pccore.dipsw[0]) >> 4) & 0x03; |
| } | } |
| (void)port; | (void)port; |
| return(ret); | return(ret); |
| Line 254 static void IOOUTCALL mouseif_obfdb(UINT | Line 254 static void IOOUTCALL mouseif_obfdb(UINT |
| // ---- I/F | // ---- I/F |
| void mouseif_reset(void) { | void mouseif_reset(const NP2CFG *pConfig) { |
| ZeroMemory(&mouseif, sizeof(mouseif)); | ZeroMemory(&mouseif, sizeof(mouseif)); |
| mouseif.upd8255.porta = 0x00; | mouseif.upd8255.porta = 0x00; |
| Line 265 void mouseif_reset(void) { | Line 265 void mouseif_reset(void) { |
| mouseif.moveclock = pccore.realclock / 56400; | mouseif.moveclock = pccore.realclock / 56400; |
| mouseif.latch_x = -1; | mouseif.latch_x = -1; |
| mouseif.latch_y = -1; | mouseif.latch_y = -1; |
| (void)pConfig; | |
| } | } |
| void mouseif_bind(void) { | void mouseif_bind(void) { |