diff options
author | 2013-04-18 09:49:16 +0000 | |
---|---|---|
committer | 2013-04-18 09:49:16 +0000 | |
commit | 7a02dc72d70714db676fa84019fb7367e3890b30 (patch) | |
tree | 75ab6b364448f56277380586b1f6fde1b3bab9ff /src/mess/machine/samcoupe.c | |
parent | 71f50fd916e5e714ee0ba2bdfd65dd2816e50b1f (diff) |
small machine().root_device() cleanup (nw)
Diffstat (limited to 'src/mess/machine/samcoupe.c')
-rw-r--r-- | src/mess/machine/samcoupe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mess/machine/samcoupe.c b/src/mess/machine/samcoupe.c index b8f9eff327f..8ee96a7b0e2 100644 --- a/src/mess/machine/samcoupe.c +++ b/src/mess/machine/samcoupe.c @@ -259,8 +259,8 @@ UINT8 samcoupe_state::samcoupe_mouse_r() if (m_mouse_index == 2) { /* update values */ - int mouse_x = machine().root_device().ioport("mouse_x")->read(); - int mouse_y = machine().root_device().ioport("mouse_y")->read(); + int mouse_x = ioport("mouse_x")->read(); + int mouse_y = ioport("mouse_y")->read(); int mouse_dx = m_mouse_x - mouse_x; int mouse_dy = m_mouse_y - mouse_y; @@ -269,7 +269,7 @@ UINT8 samcoupe_state::samcoupe_mouse_r() m_mouse_y = mouse_y; /* button state */ - m_mouse_data[2] = machine().root_device().ioport("mouse_buttons")->read(); + m_mouse_data[2] = ioport("mouse_buttons")->read(); /* y-axis */ m_mouse_data[3] = (mouse_dy & 0xf00) >> 8; |