mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
let's use our templates to clear (nw)
This commit is contained in:
parent
65458d447f
commit
3c1ea41741
@ -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));
|
m_soft_reset_timer = m_scheduler.timer_alloc(timer_expired_delegate(FUNC(running_machine::soft_reset), this));
|
||||||
|
|
||||||
// intialize UI input
|
// 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
|
// init the osd layer
|
||||||
m_manager.osd().init(*this);
|
m_manager.osd().init(*this);
|
||||||
|
@ -43,10 +43,6 @@ ui_input_manager::ui_input_manager(running_machine &machine)
|
|||||||
m_current_mouse_x = -1;
|
m_current_mouse_x = -1;
|
||||||
m_current_mouse_y = -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 */
|
/* add a frame callback to poll inputs */
|
||||||
machine.add_notifier(MACHINE_NOTIFY_FRAME, machine_notify_delegate(FUNC(ui_input_manager::frame_update), this));
|
machine.add_notifier(MACHINE_NOTIFY_FRAME, machine_notify_delegate(FUNC(ui_input_manager::frame_update), this));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user