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

« back to all changes in this revision

Viewing changes to src/mame/drivers/re900.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:
81
81
#include "re900.lh"
82
82
 
83
83
static UINT8 *re900_rom;
84
 
static UINT8 psg_pa, psg_pb = 0, mux_data = 0, ledant = 0, player = 1, stat_a= 1;
 
84
static UINT8 psg_pa, psg_pb, mux_data, ledant, player, stat_a;
85
85
 
86
86
 
87
87
/****************
325
325
 
326
326
static INPUT_PORTS_START( bs94 )
327
327
        PORT_START("IN0")
328
 
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Bet")       PORT_CODE(KEYCODE_2)
329
 
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Double")    PORT_CODE(KEYCODE_3)
330
 
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Deal/Draw") PORT_CODE(KEYCODE_1)
331
 
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Hold 5")    PORT_CODE(KEYCODE_B)
332
 
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Take")      PORT_CODE(KEYCODE_4)
333
 
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Hold 4")    PORT_CODE(KEYCODE_V)
334
 
        PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("Cancel")    PORT_CODE(KEYCODE_N)
335
 
        PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_NAME("Hold 3")    PORT_CODE(KEYCODE_C)
 
328
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_GAMBLE_BET )
 
329
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_GAMBLE_D_UP ) PORT_NAME("Double")
 
330
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_GAMBLE_DEAL ) PORT_NAME("Deal / Draw")
 
331
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_POKER_HOLD5 )
 
332
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_TAKE )
 
333
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_POKER_HOLD4 )
 
334
        PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_POKER_CANCEL )
 
335
        PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_POKER_HOLD3 )
336
336
 
337
337
        PORT_START("IN1")
338
 
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Operator")  PORT_TOGGLE PORT_CODE(KEYCODE_0)
339
 
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Hold 2")    PORT_CODE(KEYCODE_X)
340
 
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Card High") PORT_CODE(KEYCODE_A)
341
 
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Hold 1")    PORT_CODE(KEYCODE_Z)
342
 
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Card Low")  PORT_CODE(KEYCODE_S)
343
 
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Key In")    PORT_CODE(KEYCODE_5)
344
 
        PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("Key Out")   PORT_CODE(KEYCODE_8)
345
 
        PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_NAME("Auditor")   PORT_CODE(KEYCODE_9)
 
338
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Operator") PORT_TOGGLE PORT_CODE(KEYCODE_0)
 
339
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_POKER_HOLD2 )
 
340
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_GAMBLE_HIGH ) PORT_NAME("Card High")
 
341
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_POKER_HOLD1 )
 
342
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_LOW ) PORT_NAME("Card Low")
 
343
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_GAMBLE_KEYIN )
 
344
        PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_KEYOUT )
 
345
        PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Auditor") PORT_CODE(KEYCODE_9)
346
346
INPUT_PORTS_END
347
347
 
348
348
 
444
444
        TMS9928A_configure(&tms9928a_interface);
445
445
        player = 1;
446
446
        stat_a = 1;
 
447
        psg_pa = psg_pb = mux_data = ledant = 0;
447
448
}
448
449
 
449
450