Previous 15994 Revisions Next

r2858 Monday 16th June, 2008 at 21:53:54 UTC by Fabio Priuli
[SNES] added input tags
[src/mess/drivers]snes.c

src/mess/drivers/snes.c
r2857r2858
6060
6161
6262static INPUT_PORTS_START( snes )
63   PORT_START  /* IN 0 : Joypad 1 - L */
63   PORT_START_TAG("PAD1L")      /* IN 0 : Joypad 1 - L */
6464   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON3) PORT_NAME("P1 Button A")  PORT_PLAYER(1) PORT_CODE(KEYCODE_D)
6565   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON4) PORT_NAME("P1 Button X")  PORT_PLAYER(1) PORT_CODE(KEYCODE_S)
6666   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON5) PORT_NAME("P1 Button L")  PORT_PLAYER(1) PORT_CODE(KEYCODE_A)
6767   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON6) PORT_NAME("P1 Button R")  PORT_PLAYER(1) PORT_CODE(KEYCODE_Z)
68   PORT_START  /* IN 1 : Joypad 1 - H */
68   PORT_START_TAG("PAD1H")      /* IN 1 : Joypad 1 - H */
6969   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("P1 Button B")  PORT_PLAYER(1) PORT_CODE(KEYCODE_C)
7070   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("P1 Button Y")  PORT_PLAYER(1) PORT_CODE(KEYCODE_X)
7171   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SELECT) PORT_PLAYER(1)
r2857r2858
7575   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT) PORT_PLAYER(1)
7676   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT) PORT_PLAYER(1)
7777
78   PORT_START  /* IN 2 : Joypad 2 - L */
78   PORT_START_TAG("PAD2L")      /* IN 2 : Joypad 2 - L */
7979   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON3) PORT_NAME("P2 Button A")  PORT_PLAYER(2)
8080   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON4) PORT_NAME("P2 Button X")  PORT_PLAYER(2)
8181   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON5) PORT_NAME("P2 Button L")  PORT_PLAYER(2)
8282   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON6) PORT_NAME("P2 Button R")  PORT_PLAYER(2)
83   PORT_START  /* IN 3 : Joypad 2 - H */
83   PORT_START_TAG("PAD2H")      /* IN 3 : Joypad 2 - H */
8484   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("P2 Button B")  PORT_PLAYER(2)
8585   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("P2 Button Y")  PORT_PLAYER(2)
8686   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SELECT) PORT_PLAYER(2)
r2857r2858
9090   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT) PORT_PLAYER(2)
9191   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT) PORT_PLAYER(2)
9292
93   PORT_START  /* IN 4 : Joypad 3 - L */
93   PORT_START_TAG("PAD3L")      /* IN 4 : Joypad 3 - L */
9494   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON3) PORT_NAME("P3 Button A")  PORT_PLAYER(3)
9595   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON4) PORT_NAME("P3 Button X")  PORT_PLAYER(3)
9696   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON5) PORT_NAME("P3 Button L")  PORT_PLAYER(3)
9797   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON6) PORT_NAME("P3 Button R")  PORT_PLAYER(3)
98   PORT_START  /* IN 5 : Joypad 3 - H */
98   PORT_START_TAG("PAD3H")      /* IN 5 : Joypad 3 - H */
9999   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("P3 Button B")  PORT_PLAYER(3)
100100   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("P3 Button Y")  PORT_PLAYER(3)
101101   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SELECT) PORT_PLAYER(3)
r2857r2858
105105   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT) PORT_PLAYER(3)
106106   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT) PORT_PLAYER(3)
107107
108   PORT_START  /* IN 6 : Joypad 4 - L */
108   PORT_START_TAG("PAD4L")      /* IN 6 : Joypad 4 - L */
109109   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON3) PORT_NAME("P4 Button A")  PORT_PLAYER(4)
110110   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON4) PORT_NAME("P4 Button X")  PORT_PLAYER(4)
111111   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON5) PORT_NAME("P4 Button L")  PORT_PLAYER(4)
112112   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON6) PORT_NAME("P4 Button R")  PORT_PLAYER(4)
113   PORT_START  /* IN 7 : Joypad 4 - H */
113   PORT_START_TAG("PAD4H")      /* IN 7 : Joypad 4 - H */
114114   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("P4 Button B")  PORT_PLAYER(4)
115115   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("P4 Button Y")  PORT_PLAYER(4)
116116   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SELECT) PORT_PLAYER(4)
r2857r2858
120120   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT) PORT_PLAYER(4)
121121   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT) PORT_PLAYER(4)
122122
123   PORT_START   /* IN 8 : Configuration */
123   PORT_START_TAG("INTERNAL")   /* IN 8 : Configuration */
124124   PORT_CONFNAME( 0x1, 0x1, "Enforce 32 sprites/line" )
125125   PORT_CONFSETTING(   0x0, DEF_STR( No )  )
126126   PORT_CONFSETTING(   0x1, DEF_STR( Yes ) )
127127
128128#ifdef MAME_DEBUG
129   PORT_START   /* IN 9 : debug switches */
129   PORT_START_TAG("DEBUG1")   /* IN 9 : debug switches */
130130   PORT_DIPNAME( 0x3, 0x0, "Browse tiles" )
131131   PORT_DIPSETTING(   0x0, DEF_STR( Off ) )
132132   PORT_DIPSETTING(   0x1, "2bpl"  )
r2857r2858
138138   PORT_DIPSETTING(   0x8, "4bpl"  )
139139   PORT_DIPSETTING(   0xc, "8bpl"  )
140140
141   PORT_START   /* IN 10 : debug switches */
141   PORT_START_TAG("DEBUG2")   /* IN 10 : debug switches */
142142   PORT_BIT( 0x1, IP_ACTIVE_HIGH, IPT_BUTTON7) PORT_NAME("Toggle BG 1")  PORT_PLAYER(2)
143143   PORT_BIT( 0x2, IP_ACTIVE_HIGH, IPT_BUTTON8) PORT_NAME("Toggle BG 2")  PORT_PLAYER(2)
144144   PORT_BIT( 0x4, IP_ACTIVE_HIGH, IPT_BUTTON9) PORT_NAME("Toggle BG 3")  PORT_PLAYER(2)
r2857r2858
148148   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON9) PORT_NAME("Toggle Back col")  PORT_PLAYER(3)
149149   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON10) PORT_NAME("Toggle Windows")  PORT_PLAYER(3)
150150
151   PORT_START   /* IN 11 : debug input */
151   PORT_START_TAG("DEBUG3")   /* IN 11 : debug input */
152152   PORT_BIT( 0x1, IP_ACTIVE_HIGH, IPT_BUTTON9) PORT_NAME("Pal prev")
153153   PORT_BIT( 0x2, IP_ACTIVE_HIGH, IPT_BUTTON10) PORT_NAME("Pal next")
154154   PORT_BIT( 0x4, IP_ACTIVE_HIGH, IPT_BUTTON7) PORT_NAME("Toggle Transparency")  PORT_PLAYER(4)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team