Previous 199869 Revisions Next

r22896 Saturday 18th May, 2013 at 14:08:29 UTC by David Haywood
stuntair - add second button
[src/mame/drivers]stuntair.c

trunk/src/mame/drivers/stuntair.c
r22895r22896
251251   
252252   PORT_START("IN2")
253253   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
254   PORT_DIPNAME( 0x02, 0x02, "IN2:1" )
255   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
256   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
254   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
257255   PORT_DIPNAME( 0x04, 0x04, "IN2:2" )
258256   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
259257   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
r22895r22896
438436      if (m_spritebank1) tile |= 0x40;
439437      if (m_spritebank0) tile |= 0x80;
440438
441      int flipx = (m_sprram[(i*16)+1] & 0x80)>>7; // used
442      int flipy = (m_sprram[(i*16)+1] & 0x40)>>6; // guessed
439      int flipy = (m_sprram[(i*16)+1] & 0x80)>>7; // used
440   //   int flipx = (m_sprram[(i*16)+1] & 0x40)>>6; // guessed , wrong
441      int flipx = 0;
443442
444
445443      drawgfx_transpen(bitmap,cliprect,gfx,tile,0,flipx,flipy,x,y,0);
446444   }
447445

Previous 199869 Revisions Next


© 1997-2024 The MAME Team