Previous 199869 Revisions Next

r22904 Saturday 18th May, 2013 at 16:32:25 UTC by hap
- sspeedr.c: added generic Gear Shift artwork [MASH]
[src/mame/drivers]sspeedr.c
[src/mame/layout]sspeedr.lay

trunk/src/mame/layout/sspeedr.lay
r22903r22904
6767      </text>
6868   </element>
6969
70   <element name="shifter" defstate="0">
71      <rect>
72         <bounds left="0" right="32" top="0" bottom="64" />
73         <color red="0.85" green="0.4" blue="0.3" />
74      </rect>
75      <rect>
76         <bounds left="2" right="30" top="2" bottom="62" />
77         <color red="0.14" green="0.17" blue="0.2" />
78      </rect>
79      <rect>
80         <bounds left="14" right="18" top="15" bottom="49" />
81         <color red="0.44" green="0.47" blue="0.5" />
82      </rect>
83      <disk>
84         <bounds left="14" right="18" top="13" bottom="17" />
85         <color red="0.44" green="0.47" blue="0.5" />
86      </disk>
87      <disk>
88         <bounds left="14" right="18" top="47" bottom="51" />
89         <color red="0.44" green="0.47" blue="0.5" />
90      </disk>
91      <text string="LOW" state="1">
92         <bounds left="3" right="29" top="2" bottom="12" />
93         <color red="1.0" green="1.0" blue="0.4" />
94      </text>
95      <text string="LOW" state="0">
96         <bounds left="3" right="29" top="2" bottom="12" />
97         <color red="1.0" green="1.0" blue="1.0" />
98      </text>
99
100      <text string="HIGH" state="1">
101         <bounds left="3" right="29" top="52" bottom="62" />
102         <color red="1.0" green="1.0" blue="1.0" />
103      </text>
104      <text string="HIGH" state="0">
105         <bounds left="3" right="29" top="52" bottom="62" />
106         <color red="1.0" green="1.0" blue="0.4" />
107      </text>
108      <disk state="1">
109         <bounds left="9" right="23" top="14" bottom="28" />
110         <color red="0.85" green="0.4" blue="0.3" />
111      </disk>
112      <disk state="0">
113         <bounds left="9" right="23" top="36" bottom="50" />
114         <color red="0.85" green="0.4" blue="0.3" />
115      </disk>
116   </element>
117
118
70119   <view name="Simple LEDs">
71120
72121      <screen index="0">
r22903r22904
195244      <bezel name="digit23" element="digit">
196245         <bounds left="-100.065" top="175" right="-88.694" bottom="194" />
197246      </bezel>
247
248
249      <bezel element="shifter" inputtag="IN2" inputmask="0x04">
250         <bounds x="256" y="326" width="24" height="48" />
251         <color alpha="0.6" />
252      </bezel>
253
198254   </view>
199255</mamelayout>
trunk/src/mame/drivers/sspeedr.c
r22903r22904
132132   PORT_BIT( 0x1f, 0x00, IPT_POSITIONAL_V ) PORT_POSITIONS(30) PORT_REMAP_TABLE(sspeedr_controller_table + 2) PORT_SENSITIVITY(25) PORT_KEYDELTA(20)
133133
134134   PORT_START("DSW")
135   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) )  PORT_DIPLOCATION("SW1:1,2")
135   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) )       PORT_DIPLOCATION("SW1:1,2")
136136   PORT_DIPSETTING(    0x01, DEF_STR( 2C_1C ) )
137137   PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
138138   PORT_DIPSETTING(    0x03, DEF_STR( 2C_3C ) )
139139   PORT_DIPSETTING(    0x02, DEF_STR( 1C_2C ) )
140   PORT_DIPNAME( 0x0C, 0x08, "Play Time" )  PORT_DIPLOCATION("SW1:3,4")
140   PORT_DIPNAME( 0x0c, 0x08, "Play Time" )              PORT_DIPLOCATION("SW1:3,4")
141141   PORT_DIPSETTING(    0x00, "60 seconds")
142142   PORT_DIPSETTING(    0x04, "70 seconds")
143143   PORT_DIPSETTING(    0x08, "80 seconds")
144   PORT_DIPSETTING(    0x0C, "90 seconds")
145   PORT_DIPNAME( 0x10, 0x00, "Extended Play" )  PORT_DIPLOCATION("SW1:5")
144   PORT_DIPSETTING(    0x0c, "90 seconds")
145   PORT_DIPNAME( 0x10, 0x00, "Extended Play" )          PORT_DIPLOCATION("SW1:5")
146146   PORT_DIPSETTING(    0x00, "20 seconds" )
147147   PORT_DIPSETTING(    0x10, "30 seconds" )
148   PORT_DIPNAME( 0xE0, 0x20, DEF_STR( Service_Mode ) )  PORT_DIPLOCATION("SW1:6,7,8")
148   PORT_DIPNAME( 0xe0, 0x20, DEF_STR( Service_Mode ) )  PORT_DIPLOCATION("SW1:6,7,8")
149149   PORT_DIPSETTING(    0x20, "Play Mode" )
150   PORT_DIPSETTING(    0xA0, "RAM/ROM Test" )
151   PORT_DIPSETTING(    0xE0, "Accelerator Adjustment" )
150   PORT_DIPSETTING(    0xa0, "RAM/ROM Test" )
151   PORT_DIPSETTING(    0xe0, "Accelerator Adjustment" )
152152
153153   PORT_START("IN2")
154154   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
155155   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )
156   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_TOGGLE /* gear shift lever */
156   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Shifter") PORT_TOGGLE
157157   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 )
158158INPUT_PORTS_END
159159

Previous 199869 Revisions Next


© 1997-2024 The MAME Team