~ubuntu-branches/ubuntu/lucid/sdlmame/lucid

« back to all changes in this revision

Viewing changes to src/mame/drivers/hnayayoi.c

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Falco
  • Date: 2009-11-03 17:10:15 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091103171015-6hop4ory5lxnumpn
Tags: 0.135-0ubuntu1
* New upstream release - Closes (LP: #403212)
* debian/watch: unstable releases are no longer detected
* mame.ini: added the cheat subdirectories to cheatpath so zipped
  cheatfiles will be searched too
* renamed crsshair subdirectory to crosshair to reflect upstream change
* mame.ini: renamed references to crosshair subdirectory (see above)

Show diffs side-by-side

added added

removed removed

Lines of Context:
178
178
//  AM_RANGE(0x52, 0x52) AM_WRITENOP // CRT Controller
179
179
ADDRESS_MAP_END
180
180
 
181
 
static INPUT_PORTS_START( mj_keyboard )
 
181
static INPUT_PORTS_START( hf_keyboard )
182
182
        PORT_START("KEY0")
183
 
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_A )
184
 
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_E )
185
 
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_I )
186
 
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_M )
187
 
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_MAHJONG_KAN )
 
183
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_HANAFUDA_A )
 
184
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_HANAFUDA_E )
 
185
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )
 
186
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_HANAFUDA_YES )
 
187
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED )
188
188
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START1 )
189
189
        PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED )
190
190
 
191
191
        PORT_START("KEY1")
192
 
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_B )
193
 
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_F )
194
 
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_J )
195
 
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_N )
196
 
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_MAHJONG_REACH )
 
192
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_HANAFUDA_B )
 
193
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_HANAFUDA_F )
 
194
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )
 
195
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_HANAFUDA_NO )
 
196
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED )
197
197
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_MAHJONG_BET )
198
198
        PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED )
199
199
 
200
200
        PORT_START("KEY2")
201
 
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_C )
202
 
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_G )
203
 
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_K )
204
 
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_CHI )
205
 
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_MAHJONG_RON )
 
201
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_HANAFUDA_C )
 
202
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_HANAFUDA_G )
 
203
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )
 
204
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED )
 
205
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED )
206
206
        PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED )
207
207
 
208
208
        PORT_START("KEY3")
209
 
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_D )
210
 
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MAHJONG_H )
211
 
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_L )
212
 
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_PON )
 
209
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_HANAFUDA_D )
 
210
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_HANAFUDA_H )
 
211
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )
 
212
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED )
213
213
        PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
214
214
 
215
215
        PORT_START("KEY4")
308
308
        PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2)
309
309
        PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 )
310
310
 
311
 
        PORT_INCLUDE( mj_keyboard )
 
311
        PORT_INCLUDE( hf_keyboard )
312
312
INPUT_PORTS_END
313
313
 
314
314
static INPUT_PORTS_START( hnfubuki )
398
398
        PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2)
399
399
        PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 )
400
400
 
401
 
        PORT_INCLUDE( mj_keyboard )
 
401
        PORT_INCLUDE( hf_keyboard )
402
402
INPUT_PORTS_END
403
403
 
404
404
 
458
458
        PORT_START("COIN")      /* COIN */
459
459
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
460
460
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )
461
 
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME(DEF_STR( Test )) PORT_CODE(KEYCODE_F1)   /* Test */
 
461
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME(DEF_STR(Test)) PORT_CODE(KEYCODE_F1)     /* Test */
462
462
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 )   /* Analizer (Statistics) */
463
463
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED )
464
464
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN2 )      /* "Note" ("Paper Money") = 10 Credits */
466
466
        PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 )
467
467
 
468
468
        PORT_START("KEY0")      /* P1 keyboard */
469
 
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("P1 Hold 1") PORT_CODE(KEYCODE_Z)
470
 
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("P1 Hold 3") PORT_CODE(KEYCODE_C)
471
 
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("P1 Hold 5") PORT_CODE(KEYCODE_B)
 
469
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_POKER_HOLD1 )
 
470
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_POKER_HOLD3 )
 
471
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_POKER_HOLD5 )
472
472
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
473
473
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
474
474
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
478
478
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
479
479
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
480
480
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
481
 
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("P1 Bet") PORT_CODE(KEYCODE_3)
 
481
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_GAMBLE_BET )
482
482
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
483
 
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("P1 Take Score") PORT_CODE(KEYCODE_RCONTROL)
 
483
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_GAMBLE_TAKE )
484
484
        PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED )
485
485
 
486
486
        PORT_START("KEY2")
487
 
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("P1 Hold 2") PORT_CODE(KEYCODE_X)
488
 
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("P1 Hold 4") PORT_CODE(KEYCODE_V)
 
487
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_POKER_HOLD2 )
 
488
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_POKER_HOLD4 )
489
489
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
490
490
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
491
 
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("P1 Cancel") PORT_CODE(KEYCODE_N)
 
491
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_POKER_CANCEL )
492
492
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
493
493
        PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED )
494
494
 
495
495
        PORT_START("KEY3")
496
496
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
497
497
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
498
 
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("P1 Deal") PORT_CODE(KEYCODE_1)
 
498
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_GAMBLE_DEAL )
499
499
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
500
500
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
501
501
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
503
503
 
504
504
        PORT_START("KEY4")
505
505
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
506
 
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("P1 Double Up") PORT_CODE(KEYCODE_RSHIFT)
 
506
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_GAMBLE_D_UP )
507
507
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
508
 
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("P1 Flip Flop") PORT_CODE(KEYCODE_F)
 
508
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Flip Flop") PORT_CODE(KEYCODE_F)
509
509
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
510
510
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
511
511
        PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED )
692
692
GAME( 1987, hnayayoi, 0,        hnayayoi, hnayayoi, 0,        ROT0, "Dyna Electronics", "Hana Yayoi (Japan)", 0 )
693
693
GAME( 1987, hnfubuki, hnayayoi, hnfubuki, hnfubuki, hnfubuki, ROT0, "Dynax", "Hana Fubuki [BET] (Japan)", 0 )
694
694
GAME( 1987, untoucha, 0,        untoucha, untoucha, 0,        ROT0, "Dynax", "Untouchable (Japan)", 0 )
695