Ejemplo n.º 1
0
UIFrame *UITexture::processLeftClick(float /*mx*/, float /*my*/)
{
	if (clickFunc)
	{
		clickFunc(this, id);
		return this;
	}
	return 0;
}
Ejemplo n.º 2
0
bool hgeGUIMenuItem::MouseLButton(bool bDown) {
    if (!bDown) {
        clickFunc(this);
        isPressed = false;
        return true;
    }
    else {
        isPressed = true;
        return false;
    }
}