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

« back to all changes in this revision

Viewing changes to src/mame/drivers/jackie.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:
311
311
static CUSTOM_INPUT( hopper_r )
312
312
{
313
313
        if (hopper) return !(video_screen_get_frame_number(field->port->machine->primary_screen)%10);
314
 
        return input_code_pressed(KEYCODE_H);
 
314
        return input_code_pressed(field->port->machine, KEYCODE_H);
315
315
}
316
316
 
317
317
static INPUT_PORTS_START( jackie )
318
 
 
319
318
        PORT_START("DSW1")
320
319
        PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWA:8")
321
320
        PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
386
385
        PORT_DIPUNKNOWN( 0x40, 0x40 )
387
386
        PORT_DIPUNKNOWN( 0x80, 0x80 )
388
387
 
389
 
 
390
388
        PORT_START("SERVICE")
391
 
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_0) PORT_NAME("Attendent")
392
 
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL  ) PORT_CUSTOM( hopper_r, (void *)0 ) PORT_NAME("HPSW")      // hopper sensor
393
 
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_4) PORT_NAME("Payout")
 
389
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_9) PORT_NAME("Attendent")
 
390
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM( hopper_r, (void *)0 ) PORT_NAME("HPSW")       // hopper sensor
 
391
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT )
394
392
        PORT_SERVICE_NO_TOGGLE( 0x20, IP_ACTIVE_LOW )   // test (press during boot)
395
 
        PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_F1) PORT_NAME("Statistics")
 
393
        PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK ) PORT_NAME("Statistics")
396
394
 
397
395
        PORT_START("COINS")
398
396
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
399
397
        PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED )
400
398
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2 )
401
 
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN3  ) PORT_NAME("Key In")
402
 
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN4  ) PORT_NAME("Clear")  // pays out
403
 
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_OTHER  ) PORT_CODE(KEYCODE_T) PORT_NAME("Togglemode")        // Used
 
399
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_GAMBLE_KEYIN ) PORT_NAME("Key In")
 
400
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_KEYOUT ) PORT_NAME("Clear")   // pays out
 
401
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_T) PORT_NAME("Togglemode") // Used
404
402
        PORT_BIT( 0xC0, IP_ACTIVE_HIGH, IPT_UNUSED )
405
403
 
406
404
        PORT_START("BUTTONS1")
407
 
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_CODE(KEYCODE_A) PORT_NAME("Stop 1")
408
 
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_CODE(KEYCODE_S) PORT_NAME("Stop 2")
409
 
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_CODE(KEYCODE_D) PORT_NAME("Stop 3")
410
 
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_CODE(KEYCODE_F) PORT_NAME("Stop")
 
405
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SLOT_STOP1 )
 
406
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SLOT_STOP2 )
 
407
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SLOT_STOP3 )
 
408
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_V) PORT_NAME("Stop")
411
409
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
412
410
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
413
411
        PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
415
413
 
416
414
        PORT_START("BUTTONS2")  // OK
417
415
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
418
 
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_CODE(KEYCODE_C)       PORT_NAME("Small/Right Hammer")
419
 
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_CODE(KEYCODE_B)       PORT_NAME("Bet")
420
 
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_CODE(KEYCODE_Z)       PORT_NAME("Take/Left Hammer")
421
 
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_CODE(KEYCODE_V)       PORT_NAME("W-Up")
422
 
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_CODE(KEYCODE_X)       PORT_NAME("Big/Center Hammer")
 
416
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_D) PORT_NAME("Small / Right Hammer")
 
417
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_GAMBLE_BET )
 
418
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_A) PORT_NAME("Take/Left Hammer")
 
419
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_3) PORT_NAME("W-Up")
 
420
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_S) PORT_NAME("Big / Center Hammer")
423
421
        PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED )
424
 
 
425
422
INPUT_PORTS_END
426
423
 
427
424
 
531
528
        ROM_REGION( 0x10000, "maincpu", 0 )
532
529
        ROM_LOAD( "jackiev110.u23",   0x0000, 0x10000, CRC(1b78a619) SHA1(a6eb6b6e544efa55225f2e947483614afb6ece3b) )
533
530
 
534
 
        ROM_REGION( 0x60000, "gfx1", ROMREGION_DISPOSE )
 
531
        ROM_REGION( 0x60000, "gfx1", 0 )
535
532
        ROM_LOAD( "6.u6",  0x00000, 0x20000, CRC(d2ed60a9) SHA1(40e2280384aa5c9e72e87a3b9e673172ff695676) )
536
533
        ROM_LOAD( "5.u5",  0x20000, 0x20000, CRC(dc01fe7c) SHA1(683834ce2f13a923c0467209b93fef693d9c3e38) )
537
534
        ROM_LOAD( "4.u4",  0x40000, 0x20000, CRC(38a42dcd) SHA1(8cc08ff4143281d9022210d6577146d725df9044) )
538
535
 
539
 
        ROM_REGION( 0x30000, "gfx2", ROMREGION_DISPOSE )
 
536
        ROM_REGION( 0x30000, "gfx2", 0 )
540
537
        ROM_LOAD( "3.u3",  0x00000, 0x4000, CRC(c69e962b) SHA1(492427ad1ac959cdf22d23439e0eb5932b60ec88) )
541
538
        ROM_LOAD( "2.u2",  0x10000, 0x4000, CRC(8900ffba) SHA1(065cf1810ec9738718e4c94613f726e85ba4314d) )
542
539
        ROM_LOAD( "1.u1",  0x20000, 0x4000, CRC(071d20f0) SHA1(77c87486803dccaa63732ff959c223b1313820e3) )