diff options
author | 2018-08-11 11:20:58 -0400 | |
---|---|---|
committer | 2018-08-11 11:20:58 -0400 | |
commit | 7e592bc3de5d730726e62a4c82a559bcc3074e75 (patch) | |
tree | ad81adcb39380755fdeba875674ecfb63a695917 | |
parent | b9344a96529a5ad5546c4b592a79d74076b2e837 (diff) |
Revert "Send LF with CR when using natuaral keyboard on systems with a line feed key"
This reverts commit 409c0663bc69bccee39f26afe65cddb3f104851e.
-rw-r--r-- | src/emu/natkeyboard.cpp | 11 | ||||
-rw-r--r-- | src/emu/natkeyboard.h | 1 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/emu/natkeyboard.cpp b/src/emu/natkeyboard.cpp index 825ee70454c..9a50109eb6f 100644 --- a/src/emu/natkeyboard.cpp +++ b/src/emu/natkeyboard.cpp @@ -323,7 +323,6 @@ natural_keyboard::natural_keyboard(running_machine &machine) , m_fieldnum(0) , m_status_keydown(false) , m_last_cr(false) - , m_post_lf(false) , m_timer(nullptr) , m_current_rate(attotime::zero) , m_queue_chars() @@ -413,14 +412,8 @@ void natural_keyboard::post(char32_t ch) // can we post this key in the queue directly? if (can_post_directly(ch)) - { internal_post(ch); - // post LF with CR - if (ch == '\r' && m_post_lf) - internal_post('\n'); - } - // can we post this key with an alternate representation? else if (can_post_alternate(ch)) { @@ -647,10 +640,6 @@ void natural_keyboard::build_codes(ioport_manager &manager) machine().logerror("natural_keyboard: code=%u (%s) port=%p field.name='%s'\n", code, unicode_to_string(code), (void *)&port, field.name()); } - - // check for line feed key - if (code == '\n' && curshift == 0) - m_post_lf = true; } } } diff --git a/src/emu/natkeyboard.h b/src/emu/natkeyboard.h index 601b463d207..aa29bf4503c 100644 --- a/src/emu/natkeyboard.h +++ b/src/emu/natkeyboard.h @@ -93,7 +93,6 @@ private: unsigned m_fieldnum; // current step in multi-key sequence bool m_status_keydown; // current keydown status bool m_last_cr; // was the last char a CR? - bool m_post_lf; // should we post LFs? emu_timer * m_timer; // timer for posting characters attotime m_current_rate; // current rate for posting ioport_queue_chars_delegate m_queue_chars; // queue characters callback |