| 176 | } |
| 177 | |
| 178 | void CMouseInterface::InitializeIO(LPBYTE pCxRomPeripheral) |
| 179 | { |
| 180 | // m_bActive = true; |
| 181 | m_bEnabled = true; |
| 182 | SetSlotRom(); // Pre: m_bActive == true |
| 183 | RegisterIoHandler(m_slot, &CMouseInterface::IORead, &CMouseInterface::IOWrite, NULL, NULL, this, NULL); |
| 184 | |
| 185 | if (m_syncEvent.m_active) g_SynchronousEventMgr.Remove(m_syncEvent.m_id); |
| 186 | m_syncEvent.m_cyclesRemaining = NTSC_GetCyclesUntilVBlank(0); |
| 187 | g_SynchronousEventMgr.Insert(&m_syncEvent); |
| 188 | } |
| 189 | |
| 190 | #if 0 |
| 191 | void CMouseInterface::Uninitialize() |
nothing calls this directly
no test coverage detected