Previous 15994 Revisions Next

r13001 Friday 7th October, 2011 at 08:54:25 UTC by Robbbert
GAMECOM - fixed problem with stylus crosshair selection.
[src/mess/machine]gamecom.c

src/mess/machine/gamecom.c
r13000r13001
4646void gamecom_state::handle_stylus_press( int column )
4747{
4848   UINT8 * RAM = machine().region("maincpu")->base();
49   static const UINT16 row_data[10] = { 0x3FE, 0x3FD, 0x3FB, 0x3F7, 0x3EF, 0x3DF, 0x3BF, 0x37F, 0x2FF, 0x1FF };
49   static const UINT16 row_data[17] = { 0x3FE, 0x3FD, 0x3FB, 0x3F7, 0x3EF, 0x3DF, 0x3BF, 0x37F, 0x2FF, 0x1FF };
5050
5151   if ( column == 0 )
5252   {
r13000r13001
6464
6565   if ( m_stylus_x == column )
6666   {
67      RAM[SM8521_P0] = row_data[m_stylus_y>>1];
68      RAM[SM8521_P1] = ( RAM[SM8521_P1] & 0xFC ) | ( ( row_data[m_stylus_y>>1] >> 8 ) & 3 );
67      RAM[SM8521_P0] = row_data[m_stylus_y];
68      RAM[SM8521_P1] = ( RAM[SM8521_P1] & 0xFC ) | ( ( row_data[m_stylus_y] >> 8 ) & 3 );
6969   }
7070   else
7171   {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team