diff options
Diffstat (limited to 'src/devices/bus/sat_ctrl/keybd.cpp')
-rw-r--r-- | src/devices/bus/sat_ctrl/keybd.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/bus/sat_ctrl/keybd.cpp b/src/devices/bus/sat_ctrl/keybd.cpp index d84922929ff..b257ae2878c 100644 --- a/src/devices/bus/sat_ctrl/keybd.cpp +++ b/src/devices/bus/sat_ctrl/keybd.cpp @@ -205,7 +205,7 @@ ioport_constructor saturn_keybd_device::device_input_ports() const // saturn_keybd_device - constructor //------------------------------------------------- -saturn_keybd_device::saturn_keybd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : +saturn_keybd_device::saturn_keybd_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, SATURN_KEYBD, "Sega Saturn Keyboard", tag, owner, clock, "saturn_keybd", __FILE__), device_saturn_control_port_interface(mconfig, *this), m_key(*this, "KEY.%u", 0), @@ -250,7 +250,7 @@ INPUT_CHANGED_MEMBER(saturn_keybd_device::key_stroke) { if (newval && !oldval) { - m_data = ((UINT8)(uintptr_t)(param) & 0xff); + m_data = ((uint8_t)(uintptr_t)(param) & 0xff); m_status |= 8; } @@ -261,9 +261,9 @@ INPUT_CHANGED_MEMBER(saturn_keybd_device::key_stroke) } } -UINT16 saturn_keybd_device::get_game_key() +uint16_t saturn_keybd_device::get_game_key() { - UINT16 game_key = 0xffff; + uint16_t game_key = 0xffff; game_key ^= ((m_key_s1->read() & 0x80) << 8); // right game_key ^= ((m_key_s1->read() & 0x40) << 8); // left @@ -282,9 +282,9 @@ UINT16 saturn_keybd_device::get_game_key() return game_key; } -UINT8 saturn_keybd_device::read_ctrl(UINT8 offset) +uint8_t saturn_keybd_device::read_ctrl(uint8_t offset) { - UINT8 res = 0; + uint8_t res = 0; /* Keyboard Status hook-up |