let's use our templates to clear (nw)

This commit is contained in:
Miodrag Milanovic 2016-01-11 11:32:39 +01:00
parent 65458d447f
commit 3c1ea41741
2 changed files with 1 additions and 5 deletions

View File

@ -225,7 +225,7 @@ void running_machine::start()
m_soft_reset_timer = m_scheduler.timer_alloc(timer_expired_delegate(FUNC(running_machine::soft_reset), this));
// intialize UI input
m_ui_input = std::make_unique<ui_input_manager>(*this);
m_ui_input = make_unique_clear<ui_input_manager>(*this);
// init the osd layer
m_manager.osd().init(*this);

View File

@ -43,10 +43,6 @@ ui_input_manager::ui_input_manager(running_machine &machine)
m_current_mouse_x = -1;
m_current_mouse_y = -1;
memset(m_next_repeat, 0, sizeof(m_next_repeat));
memset(m_seqpressed, 0, sizeof(m_seqpressed));
memset(m_events, 0, sizeof(m_events));
/* add a frame callback to poll inputs */
machine.add_notifier(MACHINE_NOTIFY_FRAME, machine_notify_delegate(FUNC(ui_input_manager::frame_update), this));
}