HW/SerialInterface: Refactor to class.

This commit is contained in:
Admiral H. Curtiss
2023-03-12 14:20:32 +01:00
parent d371b17f37
commit bf2f901a99
11 changed files with 463 additions and 455 deletions

View File

@ -885,8 +885,9 @@ void VideoInterfaceManager::Update(u64 ticks)
{
Core::UpdateInputGate(!Config::Get(Config::MAIN_INPUT_BACKGROUND_INPUT),
Config::Get(Config::MAIN_LOCK_CURSOR));
SerialInterface::UpdateDevices();
m_half_line_of_next_si_poll += 2 * SerialInterface::GetPollXLines();
auto& si = m_system.GetSerialInterface();
si.UpdateDevices();
m_half_line_of_next_si_poll += 2 * si.GetPollXLines();
}
// If this half-line is at the actual boundary of either field, schedule an SI poll to happen