static InputPortPtr input_ports_dogyuun = new InputPortPtr(){ public void handler() { 
		PORT_START(); 		/* (0) VBlank */
		PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_VBLANK );
		PORT_BIT( 0xfffe, IP_ACTIVE_HIGH, IPT_UNKNOWN );

                PORT_START();  																	
		PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP    | IPF_8WAY | IPF_PLAYER1 );
		PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN  | IPF_8WAY | IPF_PLAYER1 );
		PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT  | IPF_8WAY | IPF_PLAYER1 );
		PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_PLAYER1 );
		PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_BUTTON1 | IPF_PLAYER1);					
		PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_BUTTON2 | IPF_PLAYER1);					
		PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_BUTTON3 | IPF_PLAYER1 );								
		PORT_BIT( 0xff80, IP_ACTIVE_HIGH, IPT_UNKNOWN );

                PORT_START();  																	
		PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP    | IPF_8WAY | IPF_PLAYER2 );
		PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN  | IPF_8WAY | IPF_PLAYER2 );
		PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT  | IPF_8WAY | IPF_PLAYER2 );
		PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_PLAYER2 );
		PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_BUTTON1 | IPF_PLAYER2);					
		PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_BUTTON2 | IPF_PLAYER2);					
		PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_BUTTON3 | IPF_PLAYER2 );								
		PORT_BIT( 0xff80, IP_ACTIVE_HIGH, IPT_UNKNOWN );
	
		PORT_START(); 										
		PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_COIN3 );	
		PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_TILT );
		PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_SERVICE1 );
		PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_COIN1 );
		PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_COIN2 );
		PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_START1 );
		PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_START2 );
		PORT_BIT( 0xff80, IP_ACTIVE_HIGH, IPT_UNKNOWN );
	
		PORT_START(); 		/* (4) DSWA */
		PORT_DIPNAME( 0x0001,	0x0000, "Play Mode" );
		PORT_DIPSETTING(		0x0000, "Coin Play" );
		PORT_DIPSETTING(		0x0001, DEF_STR( "Free_Play"));
		PORT_DIPNAME( 0x0002,	0x0000, DEF_STR( "Flip_Screen") );
		PORT_DIPSETTING(		0x0000, DEF_STR( "Off") );
		PORT_DIPSETTING(		0x0002, DEF_STR( "On") );
		PORT_SERVICE( 0x0004,	IP_ACTIVE_HIGH );	/* Service Mode */
		PORT_DIPNAME( 0x0008,	0x0000, DEF_STR( "Demo_Sounds") );
		PORT_DIPSETTING(		0x0008, DEF_STR( "Off") );
		PORT_DIPSETTING(		0x0000, DEF_STR( "On") );
		PORT_DIPNAME( 0x0030,	0x0000, DEF_STR( "Coin_A") );
		PORT_DIPSETTING(		0x0020, DEF_STR( "2C_1C") );
		PORT_DIPSETTING(		0x0000, DEF_STR( "1C_1C") );
		PORT_DIPSETTING(		0x0030, DEF_STR( "2C_3C") );
		PORT_DIPSETTING(		0x0010, DEF_STR( "1C_2C") );
		PORT_DIPNAME( 0x00c0,	0x0000, DEF_STR( "Coin_B") );
		PORT_DIPSETTING(		0x0080, DEF_STR( "2C_1C") );
		PORT_DIPSETTING(		0x0000, DEF_STR( "1C_1C") );
		PORT_DIPSETTING(		0x00c0, DEF_STR( "2C_3C") );
		PORT_DIPSETTING(		0x0040, DEF_STR( "1C_2C") );
		PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_UNKNOWN );
	
		PORT_START(); 		/* (5) DSWB */
		PORT_DIPNAME( 0x0003,	0x0000, DEF_STR( "Difficulty") );
		PORT_DIPSETTING(		0x0001, "Easy" );
		PORT_DIPSETTING(		0x0000, "Medium" );
		PORT_DIPSETTING(		0x0002, "Hard" );
		PORT_DIPSETTING(		0x0003, "Hardest" );
		PORT_DIPNAME( 0x000c,	0x0000, DEF_STR( "Bonus_Life") );
		PORT_DIPSETTING(		0x0000, "200K" );
		PORT_DIPSETTING(		0x0004, "200K, 400K, 600K" );
		PORT_DIPSETTING(		0x0008, "400K" );
		PORT_DIPSETTING(		0x000c, "None" );
		PORT_DIPNAME( 0x0030,	0x0000, DEF_STR( "Lives") );
		PORT_DIPSETTING(		0x0030, "1" );
		PORT_DIPSETTING(		0x0020, "2" );
		PORT_DIPSETTING(		0x0000, "3" );
		PORT_DIPSETTING(		0x0010, "5" );
		PORT_BITX(	  0x0040,	0x0000, IPT_DIPSWITCH_NAME | IPF_CHEAT, "Invulnerability", IP_KEY_NONE, IP_JOY_NONE );
		PORT_DIPSETTING(		0x0000, DEF_STR( "Off") );
		PORT_DIPSETTING(		0x0040, DEF_STR( "On") );
		PORT_DIPNAME( 0x0080,	0x0000, "Allow Continue" );
		PORT_DIPSETTING(		0x0080, DEF_STR( "No") );
		PORT_DIPSETTING(		0x0000, DEF_STR( "Yes") );
	INPUT_PORTS_END(); }}