diff options
author | 2016-11-11 18:49:32 +0100 | |
---|---|---|
committer | 2016-11-11 18:50:14 +0100 | |
commit | c0407f073bf7afe26407c4add5cfeaf7104913c9 (patch) | |
tree | 63aa5f4959bf71697bb02e25c9f3ef3ca2c3c761 /src/emu/natkeyboard.cpp | |
parent | cef6cd4a25b30e17d5def7871fa734b878b6f35a (diff) |
Added IS_ENABLED, so we have compiler check for non used part, it is checked but not compiled in (nw)
false and true now used instead of integer where used as bool
Diffstat (limited to 'src/emu/natkeyboard.cpp')
-rw-r--r-- | src/emu/natkeyboard.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/natkeyboard.cpp b/src/emu/natkeyboard.cpp index fd39bc7b5e0..3eba3b7bc63 100644 --- a/src/emu/natkeyboard.cpp +++ b/src/emu/natkeyboard.cpp @@ -397,7 +397,7 @@ void natural_keyboard::post(char32_t ch) m_last_cr = (ch == '\r'); // logging - if (LOG_NATURAL_KEYBOARD) + if (IS_ENABLED(LOG_NATURAL_KEYBOARD)) { const keycode_map_entry *code = find_code(ch); machine().logerror("natural_keyboard::post(): code=%i (%s) field.name='%s'\n", int(ch), unicode_to_string(ch).c_str(), (code != nullptr && code->field[0] != nullptr) ? code->field[0]->name() : "<null>"); @@ -601,7 +601,7 @@ void natural_keyboard::build_codes(ioport_manager &manager) newcode.ch = code; m_keycode_map.push_back(newcode); - if (LOG_NATURAL_KEYBOARD) + if (IS_ENABLED(LOG_NATURAL_KEYBOARD)) { machine().logerror("natural_keyboard: code=%i (%s) port=%p field.name='%s'\n", int(code), unicode_to_string(code).c_str(), (void *)&port, field.name()); } @@ -686,7 +686,7 @@ void natural_keyboard::internal_post(char32_t ch) if (empty()) { m_timer->adjust(choose_delay(ch)); - m_status_keydown = 0; + m_status_keydown = false; } // add to the buffer, resizing if necessary |