Previous 15994 Revisions Next

r7149 Saturday 23rd January, 2010 at 15:54:58 UTC by Angelo Salese
[Super A'Can]: Add L & R input buttons and identified A/B/X/Y buttons
[src/mess/drivers]supracan.c

src/mess/drivers/supracan.c
r7148r7149
257257         xsize = 1 << (supracan_vram[i+1] & 7);
258258         ysize = ((supracan_vram[i+0] & 0x1e00) >> 9)+1;
259259
260//         if(vflip)
261
262
260263         for(ytile = 0; ytile < ysize; ytile++)
261264         {
262265            if(hflip)
r7148r7149
522525   PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) )
523526   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
524527   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
525   PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) )
526   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
527   PORT_DIPSETTING(    0x10, DEF_STR( On ) )
528   PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) )
529   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
530   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
531   PORT_BIT(0x0040, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_PLAYER(1) PORT_NAME("P1 Joypad B4")
532   PORT_BIT(0x0080, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) PORT_NAME("P1 Joypad B2")
528   PORT_BIT(0x0010, IP_ACTIVE_HIGH, IPT_BUTTON6 ) PORT_PLAYER(1) PORT_NAME("P1 Button R")
529   PORT_BIT(0x0020, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_PLAYER(1) PORT_NAME("P1 Button L")
530   PORT_BIT(0x0040, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_PLAYER(1) PORT_NAME("P1 Button Y")
531   PORT_BIT(0x0080, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) PORT_NAME("P1 Button X")
533532   PORT_BIT(0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) PORT_NAME("P1 Joypad Right")
534533   PORT_BIT(0x0200, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) PORT_NAME("P1 Joypad Left")
535534   PORT_BIT(0x0400, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) PORT_NAME("P1 Joypad Down")
r7148r7149
538537   PORT_DIPSETTING(    0x0000, DEF_STR( Off ) )
539538   PORT_DIPSETTING(    0x1000, DEF_STR( On ) )
540539   PORT_BIT(0x2000, IP_ACTIVE_HIGH, IPT_START1 )
541   PORT_BIT(0x4000, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(1) PORT_NAME("P1 Joypad B3")
542   PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_NAME("P1 Joypad B1")
540   PORT_BIT(0x4000, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(1) PORT_NAME("P1 Button B")
541   PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_NAME("P1 Button A")
543542
544543   PORT_START("P2")
545544   PORT_DIPNAME( 0x01, 0x00, "SYSTEM" )
r7148r7149
554553   PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) )
555554   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
556555   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
557   PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) )
558   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
559   PORT_DIPSETTING(    0x10, DEF_STR( On ) )
560   PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) )
561   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
562   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
563   PORT_BIT(0x0040, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_PLAYER(2) PORT_NAME("P2 Joypad B4")
564   PORT_BIT(0x0080, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_NAME("P2 Joypad B2")
556   PORT_BIT(0x0010, IP_ACTIVE_HIGH, IPT_BUTTON6 ) PORT_PLAYER(2) PORT_NAME("P2 Button R")
557   PORT_BIT(0x0020, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_PLAYER(2) PORT_NAME("P2 Button L")
558   PORT_BIT(0x0040, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_PLAYER(2) PORT_NAME("P2 Button Y")
559   PORT_BIT(0x0080, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_NAME("P2 Button X")
565560   PORT_BIT(0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) PORT_NAME("P2 Joypad Right")
566561   PORT_BIT(0x0200, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) PORT_NAME("P2 Joypad Left")
567562   PORT_BIT(0x0400, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) PORT_NAME("P2 Joypad Down")
r7148r7149
570565   PORT_DIPSETTING(    0x0000, DEF_STR( Off ) )
571566   PORT_DIPSETTING(    0x1000, DEF_STR( On ) )
572567   PORT_BIT(0x2000, IP_ACTIVE_HIGH, IPT_START2 )
573   PORT_BIT(0x4000, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(2) PORT_NAME("P2 Joypad B3")
574   PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_NAME("P2 Joypad B1")
568   PORT_BIT(0x4000, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(2) PORT_NAME("P2 Button B")
569   PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_NAME("P2 Button A")
575570
576571   PORT_START("P3")
577572   PORT_DIPNAME( 0x01, 0x00, "SYSTEM" )
r7148r7149
586581   PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) )
587582   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
588583   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
589   PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) )
590   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
591   PORT_DIPSETTING(    0x10, DEF_STR( On ) )
592   PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) )
593   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
594   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
595   PORT_BIT(0x0040, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_PLAYER(3) PORT_NAME("P3 Joypad B4")
596   PORT_BIT(0x0080, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(3) PORT_NAME("P3 Joypad B2")
584   PORT_BIT(0x0010, IP_ACTIVE_HIGH, IPT_BUTTON6 ) PORT_PLAYER(3) PORT_NAME("P3 Button R")
585   PORT_BIT(0x0020, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_PLAYER(3) PORT_NAME("P3 Button L")
586   PORT_BIT(0x0040, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_PLAYER(3) PORT_NAME("P3 Button Y")
587   PORT_BIT(0x0080, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(3) PORT_NAME("P3 Button X")
597588   PORT_BIT(0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(3) PORT_NAME("P3 Joypad Right")
598589   PORT_BIT(0x0200, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(3) PORT_NAME("P3 Joypad Left")
599590   PORT_BIT(0x0400, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(3) PORT_NAME("P3 Joypad Down")
r7148r7149
602593   PORT_DIPSETTING(    0x0000, DEF_STR( Off ) )
603594   PORT_DIPSETTING(    0x1000, DEF_STR( On ) )
604595   PORT_BIT(0x2000, IP_ACTIVE_HIGH, IPT_START3 )
605   PORT_BIT(0x4000, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(3) PORT_NAME("P3 Joypad B3")
606   PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(3) PORT_NAME("P3 Joypad B1")
596   PORT_BIT(0x4000, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(3) PORT_NAME("P3 Button B")
597   PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(3) PORT_NAME("P3 Button A")
607598
608599   PORT_START("P4")
609600   PORT_DIPNAME( 0x01, 0x00, "SYSTEM" )
r7148r7149
618609   PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) )
619610   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
620611   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
621   PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) )
622   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
623   PORT_DIPSETTING(    0x10, DEF_STR( On ) )
624   PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) )
625   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
626   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
627   PORT_BIT(0x0040, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_PLAYER(4) PORT_NAME("P4 Joypad B4")
628   PORT_BIT(0x0080, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(4) PORT_NAME("P4 Joypad B2")
612   PORT_BIT(0x0010, IP_ACTIVE_HIGH, IPT_BUTTON6 ) PORT_PLAYER(4) PORT_NAME("P4 Button R")
613   PORT_BIT(0x0020, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_PLAYER(4) PORT_NAME("P4 Button L")
614   PORT_BIT(0x0040, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_PLAYER(4) PORT_NAME("P4 Button Y")
615   PORT_BIT(0x0080, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(4) PORT_NAME("P4 Button X")
629616   PORT_BIT(0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(4) PORT_NAME("P4 Joypad Right")
630617   PORT_BIT(0x0200, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(4) PORT_NAME("P4 Joypad Left")
631618   PORT_BIT(0x0400, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(4) PORT_NAME("P4 Joypad Down")
r7148r7149
633620   PORT_DIPNAME( 0x1000, 0x0000, "SYSTEM" )
634621   PORT_DIPSETTING(    0x0000, DEF_STR( Off ) )
635622   PORT_DIPSETTING(    0x1000, DEF_STR( On ) )
636   PORT_BIT(0x2000, IP_ACTIVE_HIGH, IPT_START4 )
637   PORT_BIT(0x4000, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(4) PORT_NAME("P4 Joypad B3")
638   PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(4) PORT_NAME("P4 Joypad B1")
623   PORT_BIT(0x2000, IP_ACTIVE_HIGH, IPT_START2 )
624   PORT_BIT(0x4000, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(4) PORT_NAME("P4 Button B")
625   PORT_BIT(0x8000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(4) PORT_NAME("P4 Button A")
639626INPUT_PORTS_END
640627
641628

Previous 15994 Revisions Next


© 1998-2018 The MESS Team