summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/snes_ctrl/mouse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/snes_ctrl/mouse.cpp')
-rw-r--r--src/devices/bus/snes_ctrl/mouse.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/bus/snes_ctrl/mouse.cpp b/src/devices/bus/snes_ctrl/mouse.cpp
index fc851dc33f6..ad7e9ba3008 100644
--- a/src/devices/bus/snes_ctrl/mouse.cpp
+++ b/src/devices/bus/snes_ctrl/mouse.cpp
@@ -58,7 +58,7 @@ ioport_constructor snes_mouse_device::device_input_ports() const
// snes_mouse_device - constructor
//-------------------------------------------------
-snes_mouse_device::snes_mouse_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
+snes_mouse_device::snes_mouse_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
device_t(mconfig, SNES_MOUSE, "Nintendo SNES / SFC Mouse Controller", tag, owner, clock, "snes_mouse", __FILE__),
device_snes_control_port_interface(mconfig, *this),
m_buttons(*this, "BUTTONS"),
@@ -117,7 +117,7 @@ void snes_mouse_device::device_reset()
void snes_mouse_device::port_poll()
{
- INT16 var;
+ int16_t var;
int new_dir;
m_idx = 0;
m_latch = m_buttons->read();
@@ -193,9 +193,9 @@ void snes_mouse_device::port_poll()
// read
//-------------------------------------------------
-UINT8 snes_mouse_device::read_pin4()
+uint8_t snes_mouse_device::read_pin4()
{
- UINT8 res = 0;
+ uint8_t res = 0;
if (m_strobe == 1)
{
@@ -230,7 +230,7 @@ UINT8 snes_mouse_device::read_pin4()
// write
//-------------------------------------------------
-void snes_mouse_device::write_strobe(UINT8 data)
+void snes_mouse_device::write_strobe(uint8_t data)
{
int old = m_strobe;
m_strobe = data & 0x01;