void onTouchUp(int x, int y) { Point pt(x,y); if ( m_activeButton ) { m_activeButton->onTouchUp(pt); m_activeButton = NULL; } }
void onTouchDown(int x, int y) { Point pt(x,y); if ( m_activeButton ) { m_activeButton->onTouchUp( Point(-1,-1) ); m_activeButton = NULL; } IWidget* wdgt = m_activePane ? m_activePane->hitTest(pt) : NULL; if ( wdgt != NULL ) { m_activeButton = wdgt; m_activeButton->onTouchDown(pt); } }