From cfee536f22f032c7ead65075f73cc6fd8549e68b Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 27 Apr 2016 08:13:59 +0200 Subject: Cleanups and version bump --- src/devices/bus/sat_ctrl/pointer.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/devices/bus/sat_ctrl/pointer.cpp') 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; } - -- cgit v1.2.3-70-g09d2