trunk/src/mess/drivers/splitsec.c
| r243012 | r243013 | |
| 13 | 13 | 7: Stomp |
| 14 | 14 | 8: Speedball |
| 15 | 15 | |
| 16 | | *: higher number indicates harder difficulty |
| 16 | *: higher number indicates higher difficulty |
| 17 | 17 | |
| 18 | 18 | |
| 19 | 19 | TODO: |
| r243012 | r243013 | |
| 81 | 81 | // decay time, in steps of 10ms |
| 82 | 82 | #define LEDS_DECAY_TIME 4 |
| 83 | 83 | |
| 84 | /* display layout, where number xy is lamp R(x),O(y) |
| 85 | |
| 86 | 00 02 04 |
| 87 | 10 01 12 03 14 05 16 |
| 88 | 11 13 15 |
| 89 | 20 21 22 23 24 25 26 |
| 90 | 31 33 35 |
| 91 | 30 41 32 43 34 45 36 |
| 92 | 51 53 55 |
| 93 | 40 61 42 63 44 65 46 |
| 94 | 71 73 75 |
| 95 | 50 60 52 62 54 64 56 |
| 96 | 70 72 74 |
| 97 | */ |
| 98 | |
| 84 | 99 | void splitsec_state::leds_update() |
| 85 | 100 | { |
| 86 | 101 | UINT16 active_state[0x10]; |
| r243012 | r243013 | |
| 177 | 192 | |
| 178 | 193 | static INPUT_PORTS_START( splitsec ) |
| 179 | 194 | PORT_START("IN.0") // R9 |
| 180 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_16WAY |
| 195 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_16WAY // 4 separate directional buttons, hence 16way |
| 181 | 196 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_16WAY |
| 182 | 197 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_16WAY |
| 183 | 198 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) |