MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / InitializeIO

Method InitializeIO

source/MouseInterface.cpp:178–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178void 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
191void CMouseInterface::Uninitialize()

Callers

nothing calls this directly

Calls 4

RegisterIoHandlerFunction · 0.85
RemoveMethod · 0.45
InsertMethod · 0.45

Tested by

no test coverage detected