diff options
author | 2019-07-21 12:35:03 +1000 | |
---|---|---|
committer | 2019-07-21 12:35:03 +1000 | |
commit | dac4ed89a80685fd3a6076eb76d6649df46f02d4 (patch) | |
tree | 217ea69c017fbec45a7c732f5655914aea8a01ea /src/frontend/mame/ui/ui.cpp | |
parent | d2926fa02cef5bf728eac74c9e5586aced02a80b (diff) | |
parent | 1440861929a344f4bd7f78616854e041f55702d5 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/frontend/mame/ui/ui.cpp')
-rw-r--r-- | src/frontend/mame/ui/ui.cpp | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/frontend/mame/ui/ui.cpp b/src/frontend/mame/ui/ui.cpp index a0b55307dc6..20badec3162 100644 --- a/src/frontend/mame/ui/ui.cpp +++ b/src/frontend/mame/ui/ui.cpp @@ -915,27 +915,6 @@ bool mame_ui_manager::can_paste() //------------------------------------------------- -// paste - does a paste from the keyboard -//------------------------------------------------- - -void mame_ui_manager::paste() -{ - // retrieve the clipboard text - char *text = osd_get_clipboard_text(); - - // was a result returned? - if (text != nullptr) - { - // post the text - machine().ioport().natkeyboard().post_utf8(text); - - // free the string - free(text); - } -} - - -//------------------------------------------------- // draw_fps_counter //------------------------------------------------- @@ -1115,7 +1094,7 @@ uint32_t mame_ui_manager::handler_ingame(render_container &container) { // paste command if (machine().ui_input().pressed(IPT_UI_PASTE)) - paste(); + machine().ioport().natkeyboard().paste(); } image_handler_ingame(); |