summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/sat_ctrl/pointer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/sat_ctrl/pointer.cpp')
-rw-r--r--src/devices/bus/sat_ctrl/pointer.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/devices/bus/sat_ctrl/pointer.cpp b/src/devices/bus/sat_ctrl/pointer.cpp
index cfc2bbfc3b2..9762286dbbe 100644
--- a/src/devices/bus/sat_ctrl/pointer.cpp
+++ b/src/devices/bus/sat_ctrl/pointer.cpp
@@ -3,8 +3,8 @@
/**********************************************************************
Sega Saturn Pointing Controller / Trackball emulation
-
- This is basically the same as a mouse, but it uses a different ID
+
+ This is basically the same as a mouse, but it uses a different ID
**********************************************************************/
@@ -89,16 +89,16 @@ UINT8 saturn_track_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_track_device::read_ctrl(UINT8 offset)
}
return res;
}
-