summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/alto2.cpp
diff options
context:
space:
mode:
authorGravatarGravatar jbu <pullmoll@t-online.de>2016-08-03 15:38:18 +0200
committerGravatarGravatar jbu <pullmoll@t-online.de>2016-08-03 15:38:18 +0200
commit8b32480113a2620bc2482ea6aee8fc6bcfcb4f7c (patch) (github)
tree1c90f932ccde8509664faab5ab3815220cafa912 /src/mame/drivers/alto2.cpp
parent4b5b14829ce7bc4633bde384d4f297e98c785e1c (diff)
downloadmame-8b32480113a2620bc2482ea6aee8fc6bcfcb4f7c.tar.bz2
mame-8b32480113a2620bc2482ea6aee8fc6bcfcb4f7c.zip
alto2: further cleanup + remove cruft
Get rid of the fake status display. Refactor mouse positioning code.
Diffstat (limited to 'src/mame/drivers/alto2.cpp')
-rw-r--r--src/mame/drivers/alto2.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mame/drivers/alto2.cpp b/src/mame/drivers/alto2.cpp
index 4b9e7542b65..2064a3fb6f1 100644
--- a/src/mame/drivers/alto2.cpp
+++ b/src/mame/drivers/alto2.cpp
@@ -153,13 +153,10 @@ static INPUT_PORTS_START( alto2 )
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3) PORT_NAME("Mouse YELLOW (middle)") PORT_PLAYER(1) PORT_CODE(MOUSECODE_BUTTON3) PORT_CHANGED_MEMBER( ":maincpu", alto2_cpu_device, mouse_button_2, nullptr )
PORT_START("mousex") // Mouse - X AXIS
- PORT_BIT( 0xffff, 0x00, IPT_MOUSE_X) PORT_SENSITIVITY(100) PORT_KEYDELTA(1) PORT_CHANGED_MEMBER( ":maincpu", alto2_cpu_device, mouse_motion_x, nullptr )
+ PORT_BIT( 0xffff, 0, IPT_MOUSE_X) PORT_SENSITIVITY(100) PORT_KEYDELTA(1) PORT_CHANGED_MEMBER( ":maincpu", alto2_cpu_device, mouse_motion_x, nullptr )
PORT_START("mousey") // Mouse - Y AXIS
- PORT_BIT( 0xffff, 0x00, IPT_MOUSE_Y) PORT_SENSITIVITY(100) PORT_KEYDELTA(1) PORT_CHANGED_MEMBER( ":maincpu", alto2_cpu_device, mouse_motion_y, nullptr )
-
- PORT_START("utilout") // Speaker connected to UTILOUT
- PORT_BIT( 0xff, 0x00, IPT_PORT ) PORT_WRITE_LINE_DEVICE_MEMBER(":speaker", speaker_sound_device, level_w)
+ PORT_BIT( 0xffff, 0, IPT_MOUSE_Y) PORT_SENSITIVITY(100) PORT_KEYDELTA(1) PORT_CHANGED_MEMBER( ":maincpu", alto2_cpu_device, mouse_motion_y, nullptr )
PORT_START("CONFIG") /* Memory switch on AIM board */
PORT_CONFNAME( 0x01, 0x01, "Memory switch")
@@ -279,7 +276,7 @@ static MACHINE_CONFIG_START( alto2, alto2_state )
MCFG_SCREEN_ADD_MONOCHROME("screen", RASTER, rgb_t::white)
MCFG_SCREEN_RAW_PARAMS(XTAL_20_16MHz,
ALTO2_DISPLAY_TOTAL_WIDTH, 0, ALTO2_DISPLAY_WIDTH,
- ALTO2_DISPLAY_TOTAL_HEIGHT, 0, ALTO2_DISPLAY_HEIGHT + ALTO2_FAKE_STATUS_H)
+ ALTO2_DISPLAY_TOTAL_HEIGHT, 0, ALTO2_DISPLAY_HEIGHT)
MCFG_SCREEN_REFRESH_RATE(60) // two interlaced fields
MCFG_SCREEN_VBLANK_TIME(ALTO2_DISPLAY_VBLANK_TIME)
MCFG_SCREEN_UPDATE_DEVICE("maincpu", alto2_cpu_device, screen_update)