summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/sat_ctrl/mouse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/sat_ctrl/mouse.cpp')
-rw-r--r--src/devices/bus/sat_ctrl/mouse.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/devices/bus/sat_ctrl/mouse.cpp b/src/devices/bus/sat_ctrl/mouse.cpp
index a0ef74824b9..45ac96ea6d2 100644
--- a/src/devices/bus/sat_ctrl/mouse.cpp
+++ b/src/devices/bus/sat_ctrl/mouse.cpp
@@ -3,8 +3,8 @@
/**********************************************************************
Sega Saturn Mouse emulation
-
- This is basically the same as a pointing controller, but it uses a different ID
+
+ This is basically the same as a pointing controller, but it uses a different ID
**********************************************************************/
@@ -89,16 +89,16 @@ UINT8 saturn_mouse_device::read_ctrl(UINT8 offset)
UINT8 mouse_ctrl = m_buttons->read();
INT16 mouse_x = m_pointx->read();
INT16 mouse_y = m_pointy->read();
-
+
if (mouse_x < 0)
mouse_ctrl |= 0x10;
-
+
if (mouse_y < 0)
mouse_ctrl |= 0x20;
-
+
if ((mouse_x & 0xff00) != 0xff00 && (mouse_x & 0xff00) != 0x0000)
mouse_ctrl |= 0x40;
-
+
if ((mouse_y & 0xff00) != 0xff00 && (mouse_y & 0xff00) != 0x0000)
mouse_ctrl |= 0x80;
@@ -117,4 +117,3 @@ UINT8 saturn_mouse_device::read_ctrl(UINT8 offset)
}
return res;
}
-