diff options
author | 2016-04-27 08:13:59 +0200 | |
---|---|---|
committer | 2016-04-27 08:13:59 +0200 | |
commit | cfee536f22f032c7ead65075f73cc6fd8549e68b (patch) | |
tree | f4b4703dd0295571684456c19668f508b3ddcb3a /src/devices/bus/sat_ctrl/pointer.cpp | |
parent | be8159d01eaa7533e7758bf07384501dbc6214f3 (diff) |
Cleanups and version bumpmame0173
Diffstat (limited to 'src/devices/bus/sat_ctrl/pointer.cpp')
-rw-r--r-- | src/devices/bus/sat_ctrl/pointer.cpp | 13 |
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; } - |