diff options
author | 2020-12-26 13:38:14 -0500 | |
---|---|---|
committer | 2020-12-26 13:39:34 -0500 | |
commit | c04e2cbe0b88d67fed6b0316633cb9cbed4c76aa (patch) | |
tree | 2d845a3297d90e110ee4364510ae982b1b0a098f /src/frontend/mame/ui/ui.cpp | |
parent | 43f569e58f26d23032b950ebcbd02f352532ba95 (diff) |
natkeyboard: Remove from ioport_manager
Diffstat (limited to 'src/frontend/mame/ui/ui.cpp')
-rw-r--r-- | src/frontend/mame/ui/ui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/frontend/mame/ui/ui.cpp b/src/frontend/mame/ui/ui.cpp index 7ba294c446c..64f68d92049 100644 --- a/src/frontend/mame/ui/ui.cpp +++ b/src/frontend/mame/ui/ui.cpp @@ -992,7 +992,7 @@ void mame_ui_manager::process_natural_keyboard() { // if this was a UI_EVENT_CHAR event, post it if (event.event_type == ui_event::type::IME_CHAR) - machine().ioport().natkeyboard().post_char(event.ch); + machine().natkeyboard().post_char(event.ch); } // process natural keyboard keys that don't get UI_EVENT_CHARs @@ -1015,7 +1015,7 @@ void mame_ui_manager::process_natural_keyboard() *key_down_ptr |= key_down_mask; // post the key - machine().ioport().natkeyboard().post_char(UCHAR_MAMEKEY_BEGIN + code.item_id()); + machine().natkeyboard().post_char(UCHAR_MAMEKEY_BEGIN + code.item_id()); } else if (!pressed && (*key_down_ptr & key_down_mask)) { @@ -1244,14 +1244,14 @@ uint32_t mame_ui_manager::handler_ingame(render_container &container) } // is the natural keyboard enabled? - if (machine().ioport().natkeyboard().in_use() && (machine().phase() == machine_phase::RUNNING)) + if (machine().natkeyboard().in_use() && (machine().phase() == machine_phase::RUNNING)) process_natural_keyboard(); if (!ui_disabled) { // paste command if (machine().ui_input().pressed(IPT_UI_PASTE)) - machine().ioport().natkeyboard().paste(); + machine().natkeyboard().paste(); } image_handler_ingame(); |