Exemplo n.º 1
0
Bool SpotColor::InputEvent(const BaseContainer &msg)
{
	if(msg.GetInt32(BFM_INPUT_DEVICE) == BFM_INPUT_MOUSE){
		if(msg.GetInt32(BFM_INPUT_CHANNEL) == BFM_INPUT_MOUSELEFT){
			if(m_dragable){
				Vector col = m_color.Convert(COLOR_SOURCE_DISPLAY).AsVector();
                ClampColor(col);
				if(!HandleMouseDrag(msg,DRAGTYPE_RGB,&col,0)){
                    HandleClick();
                }
			}
		}
	}
	return FALSE;
}
Exemplo n.º 2
0
void    pfGUIKnobCtrl::HandleMouseUp( hsPoint3 &mousePt, uint8_t modifiers )
{
    fDragging = false;
    HandleMouseDrag( mousePt, modifiers );
}