trunk/src/mame/layout/sspeedr.lay
| r22903 | r22904 | |
| 67 | 67 | </text> |
| 68 | 68 | </element> |
| 69 | 69 | |
| 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 | |
| 70 | 119 | <view name="Simple LEDs"> |
| 71 | 120 | |
| 72 | 121 | <screen index="0"> |
| r22903 | r22904 | |
| 195 | 244 | <bezel name="digit23" element="digit"> |
| 196 | 245 | <bounds left="-100.065" top="175" right="-88.694" bottom="194" /> |
| 197 | 246 | </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 | |
| 198 | 254 | </view> |
| 199 | 255 | </mamelayout> |
trunk/src/mame/drivers/sspeedr.c
| r22903 | r22904 | |
| 132 | 132 | PORT_BIT( 0x1f, 0x00, IPT_POSITIONAL_V ) PORT_POSITIONS(30) PORT_REMAP_TABLE(sspeedr_controller_table + 2) PORT_SENSITIVITY(25) PORT_KEYDELTA(20) |
| 133 | 133 | |
| 134 | 134 | 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") |
| 136 | 136 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) |
| 137 | 137 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| 138 | 138 | PORT_DIPSETTING( 0x03, DEF_STR( 2C_3C ) ) |
| 139 | 139 | 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") |
| 141 | 141 | PORT_DIPSETTING( 0x00, "60 seconds") |
| 142 | 142 | PORT_DIPSETTING( 0x04, "70 seconds") |
| 143 | 143 | 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") |
| 146 | 146 | PORT_DIPSETTING( 0x00, "20 seconds" ) |
| 147 | 147 | 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") |
| 149 | 149 | 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" ) |
| 152 | 152 | |
| 153 | 153 | PORT_START("IN2") |
| 154 | 154 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 155 | 155 | 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 |
| 157 | 157 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 158 | 158 | INPUT_PORTS_END |
| 159 | 159 | |