diff options
Diffstat (limited to 'src/mame/machine/ngen_kb.cpp')
-rw-r--r-- | src/mame/machine/ngen_kb.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/machine/ngen_kb.cpp b/src/mame/machine/ngen_kb.cpp index 0d9532f1286..c42f2b72e64 100644 --- a/src/mame/machine/ngen_kb.cpp +++ b/src/mame/machine/ngen_kb.cpp @@ -10,7 +10,7 @@ #include "ngen_kb.h" -ngen_keyboard_device::ngen_keyboard_device(const machine_config& mconfig, const char* tag, device_t* owner, UINT32 clock) +ngen_keyboard_device::ngen_keyboard_device(const machine_config& mconfig, const char* tag, device_t* owner, uint32_t clock) : serial_keyboard_device(mconfig, NGEN_KEYBOARD, "NGEN Keyboard", tag, owner, 0, "ngen_keyboard", __FILE__) , m_keys_down(0U) , m_last_reset(0U) @@ -18,7 +18,7 @@ ngen_keyboard_device::ngen_keyboard_device(const machine_config& mconfig, const } -void ngen_keyboard_device::write(UINT8 data) +void ngen_keyboard_device::write(uint8_t data) { // To be figured out // Code 0x92 is sent on startup, perhaps resets the keyboard MCU @@ -78,7 +78,7 @@ void ngen_keyboard_device::device_reset() { serial_keyboard_device::device_reset(); - m_keys_down = UINT8(~0U); + m_keys_down = uint8_t(~0U); m_last_reset = 0U; } @@ -88,19 +88,19 @@ void ngen_keyboard_device::rcv_complete() write(get_received_char()); } -void ngen_keyboard_device::key_make(UINT8 row, UINT8 column) +void ngen_keyboard_device::key_make(uint8_t row, uint8_t column) { serial_keyboard_device::key_make(row, column); - m_keys_down = UINT8((row << 4) | column); + m_keys_down = uint8_t((row << 4) | column); m_last_reset = 0U; } -void ngen_keyboard_device::key_break(UINT8 row, UINT8 column) +void ngen_keyboard_device::key_break(uint8_t row, uint8_t column) { serial_keyboard_device::key_break(row, column); - if (m_keys_down == UINT8((row << 4) | column)) + if (m_keys_down == uint8_t((row << 4) | column)) { - m_keys_down = UINT8(~0U); + m_keys_down = uint8_t(~0U); send_key(0xc0U); } } |