diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2020-01-10 12:06:08 -0500 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2020-01-10 12:09:15 -0500 |
commit | 197c94ceacbc05a8fc9785592a6ccfbb7f585047 (patch) | |
tree | e6b40959f3f3f219eadedbf249da196f4a1841ec /src/frontend/mame/ui/ui.cpp | |
parent | 2b4c203d88e672e7c117d6266c5bb6ed7ef5bd00 (diff) |
input_sdl: Process control characters so that the natural keyboard can see them (SDL normally strips these out)
Don't strip linefeed characters (Ctrl-J) from natural keyboard input except when pasting strings
Diffstat (limited to 'src/frontend/mame/ui/ui.cpp')
-rw-r--r-- | src/frontend/mame/ui/ui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/mame/ui/ui.cpp b/src/frontend/mame/ui/ui.cpp index baca4dd1bc7..b5b37a3450f 100644 --- a/src/frontend/mame/ui/ui.cpp +++ b/src/frontend/mame/ui/ui.cpp @@ -843,7 +843,7 @@ void mame_ui_manager::process_natural_keyboard() { // if this was a UI_EVENT_CHAR event, post it if (event.event_type == ui_event::IME_CHAR) - machine().ioport().natkeyboard().post(event.ch); + machine().ioport().natkeyboard().post_char(event.ch); } // process natural keyboard keys that don't get UI_EVENT_CHARs @@ -866,7 +866,7 @@ void mame_ui_manager::process_natural_keyboard() *key_down_ptr |= key_down_mask; // post the key - machine().ioport().natkeyboard().post(UCHAR_MAMEKEY_BEGIN + code.item_id()); + machine().ioport().natkeyboard().post_char(UCHAR_MAMEKEY_BEGIN + code.item_id()); } else if (!pressed && (*key_down_ptr & key_down_mask)) { |