Esempio n. 1
0
 public bool GetMouseButtonUp(int button)
 {
     if (Backend.LastMouseEventConsumed)
     {
         return(true);
     }
     return(Base.GetMouseButtonUp(button));
 }
Esempio n. 2
0
 private static void getMouseButtonInfo(IInputAdapter adapter, ref dfMouseButtons buttonsDown, ref dfMouseButtons buttonsReleased, ref dfMouseButtons buttonsPressed)
 {
     for (int i = 0; i < 3; i++)
     {
         if (adapter.GetMouseButton(i))
         {
             buttonsDown = (dfMouseButtons)((int)buttonsDown | 1 << (i & 31));
         }
         if (adapter.GetMouseButtonUp(i))
         {
             buttonsReleased = (dfMouseButtons)((int)buttonsReleased | 1 << (i & 31));
         }
         if (adapter.GetMouseButtonDown(i))
         {
             buttonsPressed = (dfMouseButtons)((int)buttonsPressed | 1 << (i & 31));
         }
     }
 }
        private static void getMouseButtonInfo( IInputAdapter adapter, ref dfMouseButtons buttonsDown, ref dfMouseButtons buttonsReleased, ref dfMouseButtons buttonsPressed )
        {
            for( int i = 0; i < 3; i++ )
            {

                if( adapter.GetMouseButton( i ) )
                {
                    buttonsDown |= (dfMouseButtons)( 1 << i );
                }
                if( adapter.GetMouseButtonUp( i ) )
                {
                    buttonsReleased |= (dfMouseButtons)( 1 << i );
                }
                if( adapter.GetMouseButtonDown( i ) )
                {
                    buttonsPressed |= (dfMouseButtons)( 1 << i );
                }

            }
        }