mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
improve inputs in spyhuntertec.cpp
This commit is contained in:
parent
3b5b03041d
commit
cc7f9809d5
@ -15,14 +15,14 @@ non-interlaced
|
||||
|
||||
sound system appears to be the same as 'spartanxtec.cpp'
|
||||
|
||||
analog inputs seem to be read by the sound CPU, with serial communication
|
||||
|
||||
|
||||
*/
|
||||
|
||||
#include "emu.h"
|
||||
#include "cpu/z80/z80.h"
|
||||
#include "sound/ay8910.h"
|
||||
|
||||
#include "spyhunttec.lh"
|
||||
|
||||
#define MASTER_CLOCK XTAL_20MHz // ??
|
||||
|
||||
@ -575,19 +575,11 @@ static INPUT_PORTS_START( spyhuntertec )
|
||||
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
||||
|
||||
PORT_START("IN2")
|
||||
PORT_DIPNAME( 0x0001, 0x0001, "2" )
|
||||
PORT_DIPSETTING( 0x0001, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 )
|
||||
PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unknown ) )
|
||||
PORT_DIPSETTING( 0x0004, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unknown ) )
|
||||
PORT_DIPSETTING( 0x0008, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPNAME( 0x0010, 0x0010, "handbrake?" )
|
||||
PORT_DIPSETTING( 0x0010, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Right Button / Smoke Screen")
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME("Center Button / Weapons Van")
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Left Trigger / Missiles")
|
||||
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Left Button / Oil Slick")
|
||||
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Gear Shift") PORT_TOGGLE
|
||||
PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) )
|
||||
PORT_DIPSETTING( 0x0020, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
@ -616,7 +608,7 @@ static INPUT_PORTS_START( spyhuntertec )
|
||||
PORT_DIPSETTING( 0x0020, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 )
|
||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Right Trigger / Machine Guns")
|
||||
|
||||
PORT_START("PEDAL")
|
||||
PORT_BIT( 0xff, 0x02, IPT_PEDAL ) PORT_MINMAX(0x02,0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_REVERSE
|
||||
@ -843,4 +835,4 @@ DRIVER_INIT_MEMBER(spyhuntertec_state,spyhuntertec)
|
||||
}
|
||||
|
||||
|
||||
GAME (1983, spyhuntpr,spyhunt, spyhuntertec, spyhuntertec,spyhuntertec_state, spyhuntertec,ROT90, "Bally Midway (Recreativos Franco S.A. license)", "Spy Hunter (Spain, Tecfri / Recreativos Franco S.A. PCB)", MACHINE_NOT_WORKING | MACHINE_SUPPORTS_SAVE )
|
||||
GAMEL(1983, spyhuntpr,spyhunt, spyhuntertec, spyhuntertec,spyhuntertec_state, spyhuntertec,ROT90, "bootleg (Recreativos Franco S.A. license, Tecfri)", "Spy Hunter (Spain, Recreativos Franco S.A., Tecfri PCB)", MACHINE_NOT_WORKING | MACHINE_SUPPORTS_SAVE, layout_spyhunttec )
|
||||
|
174
src/mame/layout/spyhunttec.lay
Normal file
174
src/mame/layout/spyhunttec.lay
Normal file
@ -0,0 +1,174 @@
|
||||
<?xml version="1.0"?>
|
||||
<mamelayout version="2">
|
||||
|
||||
<element name="lamp_miss" defstate="0">
|
||||
<text string="MISSILES" state="0">
|
||||
<color red="0.3" green="0.1" blue="0.0" />
|
||||
</text>
|
||||
<text string="MISSILES" state="1">
|
||||
<color red="1.0" green="0.4" blue="0.2" />
|
||||
</text>
|
||||
</element>
|
||||
|
||||
<element name="lamp_oil" defstate="0">
|
||||
<text string="OIL SLICK" state="0">
|
||||
<color red="0.3" green="0.0" blue="0.25" />
|
||||
</text>
|
||||
<text string="OIL SLICK" state="1">
|
||||
<color red="1.0" green="0.2" blue="0.8" />
|
||||
</text>
|
||||
</element>
|
||||
|
||||
<element name="lamp_van" defstate="0">
|
||||
<text string="WEAPONS VAN" state="0">
|
||||
<color red="0.3" green="0.25" blue="0.0" />
|
||||
</text>
|
||||
<text string="WEAPONS VAN" state="1">
|
||||
<color red="1.0" green="0.8" blue="0.2" />
|
||||
</text>
|
||||
</element>
|
||||
|
||||
<element name="lamp_smoke" defstate="0">
|
||||
<text string="SMOKE SCREEN" state="0">
|
||||
<color red="0.3" green="0.0" blue="0.25" />
|
||||
</text>
|
||||
<text string="SMOKE SCREEN" state="1">
|
||||
<color red="1.0" green="0.2" blue="0.8" />
|
||||
</text>
|
||||
</element>
|
||||
|
||||
<element name="lamp_gun" defstate="0">
|
||||
<text string="MACHINE GUNS" state="0">
|
||||
<color red="0.3" green="0.1" blue="0.0" />
|
||||
</text>
|
||||
<text string="MACHINE GUNS" state="1">
|
||||
<color red="1.0" green="0.4" blue="0.2" />
|
||||
</text>
|
||||
</element>
|
||||
|
||||
|
||||
<element name="shifter" defstate="0">
|
||||
<rect>
|
||||
<bounds left="0" right="32" top="0" bottom="64" />
|
||||
<color red="0.85" green="0.4" blue="0.3" />
|
||||
</rect>
|
||||
<rect>
|
||||
<bounds left="2" right="30" top="2" bottom="62" />
|
||||
<color red="0.14" green="0.17" blue="0.2" />
|
||||
</rect>
|
||||
<rect>
|
||||
<bounds left="14" right="18" top="15" bottom="49" />
|
||||
<color red="0.44" green="0.47" blue="0.5" />
|
||||
</rect>
|
||||
<disk>
|
||||
<bounds left="14" right="18" top="13" bottom="17" />
|
||||
<color red="0.44" green="0.47" blue="0.5" />
|
||||
</disk>
|
||||
<disk>
|
||||
<bounds left="14" right="18" top="47" bottom="51" />
|
||||
<color red="0.44" green="0.47" blue="0.5" />
|
||||
</disk>
|
||||
<text string="LOW" state="0">
|
||||
<bounds left="3" right="29" top="2" bottom="12" />
|
||||
<color red="1.0" green="1.0" blue="0.4" />
|
||||
</text>
|
||||
<text string="LOW" state="1">
|
||||
<bounds left="3" right="29" top="2" bottom="12" />
|
||||
<color red="1.0" green="1.0" blue="1.0" />
|
||||
</text>
|
||||
|
||||
<text string="HIGH" state="0">
|
||||
<bounds left="3" right="29" top="52" bottom="62" />
|
||||
<color red="1.0" green="1.0" blue="1.0" />
|
||||
</text>
|
||||
<text string="HIGH" state="1">
|
||||
<bounds left="3" right="29" top="52" bottom="62" />
|
||||
<color red="1.0" green="1.0" blue="0.4" />
|
||||
</text>
|
||||
<disk state="0">
|
||||
<bounds left="9" right="23" top="14" bottom="28" />
|
||||
<color red="0.85" green="0.4" blue="0.3" />
|
||||
</disk>
|
||||
<disk state="1">
|
||||
<bounds left="9" right="23" top="36" bottom="50" />
|
||||
<color red="0.85" green="0.4" blue="0.3" />
|
||||
</disk>
|
||||
</element>
|
||||
|
||||
|
||||
<view name="Lamps + Shifter-R">
|
||||
<screen index="0">
|
||||
<bounds x="0" y="0" width="480" height="640" />
|
||||
</screen>
|
||||
|
||||
<bezel name="lamp1" element="lamp_miss">
|
||||
<bounds x="5" y="641" width="60" height="25" />
|
||||
</bezel>
|
||||
<bezel name="lamp0" element="lamp_oil">
|
||||
<bounds x="72" y="641" width="59" height="25" />
|
||||
</bezel>
|
||||
<bezel name="lamp2" element="lamp_van">
|
||||
<bounds x="172" y="641" width="85" height="25" />
|
||||
</bezel>
|
||||
<bezel name="lamp3" element="lamp_smoke">
|
||||
<bounds x="295" y="641" width="93" height="25" />
|
||||
</bezel>
|
||||
<bezel name="lamp4" element="lamp_gun">
|
||||
<bounds x="390" y="641" width="90" height="25" />
|
||||
</bezel>
|
||||
|
||||
<bezel element="shifter" inputtag="IN2" inputmask="0x10">
|
||||
<bounds x="446" y="574" width="32" height="64" />
|
||||
<color alpha="0.6" />
|
||||
</bezel>
|
||||
</view>
|
||||
|
||||
<view name="Lamps + Shifter-L">
|
||||
<screen index="0">
|
||||
<bounds x="0" y="0" width="480" height="640" />
|
||||
</screen>
|
||||
|
||||
<bezel name="lamp1" element="lamp_miss">
|
||||
<bounds x="5" y="641" width="60" height="25" />
|
||||
</bezel>
|
||||
<bezel name="lamp0" element="lamp_oil">
|
||||
<bounds x="72" y="641" width="59" height="25" />
|
||||
</bezel>
|
||||
<bezel name="lamp2" element="lamp_van">
|
||||
<bounds x="172" y="641" width="85" height="25" />
|
||||
</bezel>
|
||||
<bezel name="lamp3" element="lamp_smoke">
|
||||
<bounds x="295" y="641" width="93" height="25" />
|
||||
</bezel>
|
||||
<bezel name="lamp4" element="lamp_gun">
|
||||
<bounds x="390" y="641" width="90" height="25" />
|
||||
</bezel>
|
||||
|
||||
<bezel element="shifter" inputtag="IN2" inputmask="0x10">
|
||||
<bounds x="2" y="574" width="32" height="64" />
|
||||
<color alpha="0.6" />
|
||||
</bezel>
|
||||
</view>
|
||||
|
||||
<view name="Lamps">
|
||||
<screen index="0">
|
||||
<bounds x="0" y="0" width="480" height="640" />
|
||||
</screen>
|
||||
|
||||
<bezel name="lamp1" element="lamp_miss">
|
||||
<bounds x="5" y="641" width="60" height="25" />
|
||||
</bezel>
|
||||
<bezel name="lamp0" element="lamp_oil">
|
||||
<bounds x="72" y="641" width="59" height="25" />
|
||||
</bezel>
|
||||
<bezel name="lamp2" element="lamp_van">
|
||||
<bounds x="172" y="641" width="85" height="25" />
|
||||
</bezel>
|
||||
<bezel name="lamp3" element="lamp_smoke">
|
||||
<bounds x="295" y="641" width="93" height="25" />
|
||||
</bezel>
|
||||
<bezel name="lamp4" element="lamp_gun">
|
||||
<bounds x="390" y="641" width="90" height="25" />
|
||||
</bezel>
|
||||
</view>
|
||||
</mamelayout>
|
Loading…
Reference in New Issue
Block a user