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

« back to all changes in this revision

Viewing changes to src/mame/drivers/spoker.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:
84
84
static CUSTOM_INPUT( hopper_r )
85
85
{
86
86
        if (hopper) return !(video_screen_get_frame_number(field->port->machine->primary_screen)%10);
87
 
        return input_code_pressed(KEYCODE_H);
 
87
        return input_code_pressed(field->port->machine, KEYCODE_H);
88
88
}
89
89
 
90
90
static UINT8 out[3];
268
268
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_NAME("Memory Clear") // stats, memory
269
269
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL  ) PORT_CUSTOM( hopper_r, (void *)0 ) PORT_NAME("HPSW")      // hopper sensor
270
270
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN  )
271
 
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_4) PORT_NAME("Payout")
 
271
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT )
272
272
        PORT_SERVICE_NO_TOGGLE( 0x20, IP_ACTIVE_LOW )
273
 
        PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_F1) PORT_NAME("Statistics")
 
273
        PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK ) PORT_NAME("Statistics")
274
274
        PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN  )
275
275
 
276
276
        PORT_START("COINS")
277
277
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1   )
278
278
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
279
279
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2   )
280
 
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_CODE(KEYCODE_Q) PORT_NAME("Key In")
281
 
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN4 ) PORT_CODE(KEYCODE_W) PORT_NAME("Key Down")
 
280
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_GAMBLE_KEYIN )
 
281
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_KEYOUT ) PORT_NAME("Key Down")
282
282
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
283
283
        PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
284
284
        PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
288
288
 
289
289
        PORT_START("BUTTONS2")
290
290
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
291
 
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Hold1/High/Low")
292
 
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Hold5/Bet")
293
 
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Hold4/Take")
294
 
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Hold3/W-Up")
295
 
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Hold2/Red/Black")
 
291
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_POKER_HOLD1 ) PORT_NAME("Hold 1 / High / Low")
 
292
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_POKER_HOLD5 ) PORT_NAME("Hold 5 / Bet")
 
293
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_POKER_HOLD4 ) PORT_NAME("Hold 4 / Take")
 
294
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_POKER_HOLD3 ) PORT_NAME("Hold 3 / W-Up")
 
295
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_POKER_HOLD2 ) PORT_NAME("Hold 2 / Red / Black")
296
296
        PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED )
297
297
INPUT_PORTS_END
298
298
 
411
411
        ROM_REGION( 0x10000, "maincpu", 0 )
412
412
        ROM_LOAD( "v.bin",   0x0000, 0x10000, CRC(df52997b) SHA1(72a76e84aeedfdebd4c6cb47809117a28b5d3892) )
413
413
 
414
 
        ROM_REGION( 0xc0000, "gfx1", ROMREGION_DISPOSE )
 
414
        ROM_REGION( 0xc0000, "gfx1", 0 )
415
415
        ROM_LOAD( "6.bin",  0x80000, 0x40000, CRC(f9b027f8) SHA1(c4686a4024062482f9864e0445087e32899fc775) )
416
416
        ROM_LOAD( "5.bin",  0x40000, 0x40000, CRC(baca51b6) SHA1(c97322c814729332378b6304a79062fea385ca97) )
417
417
        ROM_LOAD( "4.bin",  0x00000, 0x40000, CRC(1172c790) SHA1(43f1d019ecae5c605722e3fe77ae2f022b01260b) )
418
418
 
419
 
        ROM_REGION( 0x30000, "gfx2", ROMREGION_DISPOSE )
 
419
        ROM_REGION( 0x30000, "gfx2", 0 )
420
420
        ROM_LOAD( "3.bin",  0x20000, 0x10000, CRC(5f18b012) SHA1(c9a96237eaf3138f136bbaffb29dde0ef568ce73) )
421
421
        ROM_LOAD( "2.bin",  0x10000, 0x10000, CRC(50fc3505) SHA1(ca1e4ee7e0bb59c3bd67727f65054a48000ae7fe) )
422
422
        ROM_LOAD( "1.bin",  0x00000, 0x10000, CRC(28ce630a) SHA1(9b597073d33841e7db2c68bbe9f30b734d7f7b41) )
430
430
        ROM_REGION( 0x10000, "maincpu", 0 )
431
431
        ROM_LOAD( "v.bin",   0x0000, 0x10000, CRC(e44e943a)  SHA1(78e32d07e2be9a452be10735641cbcf269068c55) )
432
432
 
433
 
        ROM_REGION( 0xc0000, "gfx1", ROMREGION_DISPOSE )
 
433
        ROM_REGION( 0xc0000, "gfx1", 0 )
434
434
        ROM_LOAD( "6.bin",  0x80000, 0x40000, CRC(55b54b11) SHA1(decf27d40ec842374af02c93d761375690be83a3) )
435
435
        ROM_LOAD( "5.bin",  0x40000, 0x40000, CRC(163f5b64) SHA1(5d3a5c2a64691ee9e2bb3a7c283aa9efa53fb35e) )
436
436
        ROM_LOAD( "4.bin",  0x00000, 0x40000, CRC(ec2c6ac3) SHA1(e0a38da26202d2b9a481060fe5b88a38e284201e) )
437
437
 
438
 
        ROM_REGION( 0x30000, "gfx2", ROMREGION_DISPOSE )
 
438
        ROM_REGION( 0x30000, "gfx2", 0 )
439
439
        ROM_LOAD( "3.bin",  0x20000, 0x10000, CRC(5f18b012) SHA1(c9a96237eaf3138f136bbaffb29dde0ef568ce73) )
440
440
        ROM_LOAD( "2.bin",  0x10000, 0x10000, CRC(50fc3505) SHA1(ca1e4ee7e0bb59c3bd67727f65054a48000ae7fe) )
441
441
        ROM_LOAD( "1.bin",  0x00000, 0x10000, CRC(28ce630a) SHA1(9b597073d33841e7db2c68bbe9f30b734d7f7b41) )
444
444
        ROM_LOAD( "7.bin",   0x0000, 0x40000, CRC(67789f1c) SHA1(1bef621b4d6399f76020c6310e2e1c2f861679de) )
445
445
ROM_END
446
446
 
447
 
GAME( 1993?, spk116it, 0,        spoker, spoker,  spk116it, ROT0, "IGS",    "Super Poker (v116IT)",                      0 )
448
 
GAME( 1993?, spk115it, spk116it, spoker, spoker,  spk116it, ROT0, "IGS",    "Super Poker (v115IT)",                      0 )
449
 
 
 
447
GAME( 1993?, spk116it, 0,        spoker, spoker,  spk116it, ROT0, "IGS", "Super Poker (v116IT)", 0 )
 
448
GAME( 1993?, spk115it, spk116it, spoker, spoker,  spk116it, ROT0, "IGS", "Super Poker (v115IT)", 0 )