本文整理汇总了C++中Listener::MouseLBUp方法的典型用法代码示例。如果您正苦于以下问题:C++ Listener::MouseLBUp方法的具体用法?C++ Listener::MouseLBUp怎么用?C++ Listener::MouseLBUp使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Listener
的用法示例。
在下文中一共展示了Listener::MouseLBUp方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: MouseLBUp
bool UserInterface::MouseLBUp(int x, int y)
{
Listener *xRotLBU = static_cast<Listener*>(xRot);
Listener *yRotLBU = static_cast<Listener*>(yRot);
Listener *zRotLBU = static_cast<Listener*>(zRot);
Listener *xTranLBU = static_cast<Listener*>(xTran);
Listener *yTranLBU = static_cast<Listener*>(yTran);
Listener *zTranLBU = static_cast<Listener*>(zTran);
xRotLBU->MouseLBUp(x, y);
yRotLBU->MouseLBUp(x, y);
zRotLBU->MouseLBUp(x, y);
xTranLBU->MouseLBUp(x, y);
yTranLBU->MouseLBUp(x, y);
zTranLBU->MouseLBUp(x, y);
if (x > (workArea_TL.GetX() + 160.0f) && x < (workArea_TL.GetX() + 180.0f) && y > (workArea_BR.GetY() - 370.0f) && y < (workArea_BR.GetY() - 350.0f))
{
if (spin)
{
spin = false;
}
else if (!spin)
{
spin = true;
}
}
if (x > (workArea_TL.GetX() + 160.0f) && x < (workArea_TL.GetX() + 180.0f) && y >(workArea_BR.GetY() - 420.0f) && y < (workArea_BR.GetY() - 400.0f))
{
if (fill)
{
fill = false;
}
else if (!fill)
{
fill = true;
}
}
if (x > (workArea_TL.GetX() + 160.0f) && x < (workArea_TL.GetX() + 180.0f) && y >(workArea_BR.GetY() - 520.0f) && y < (workArea_BR.GetY() - 500.0f))
{
if (!teapot)
{
teapot = true;
desmond = false;
teddy = false;
C3P0 = false;
ResetAllSliders();
}
}
if (x >(workArea_TL.GetX() + 160.0f) && x < (workArea_TL.GetX() + 180.0f) && y >(workArea_BR.GetY() - 570.0f) && y < (workArea_BR.GetY() - 550.0f))
{
if (!desmond)
{
teapot = false;
desmond = true;
teddy = false;
C3P0 = false;
ResetAllSliders();
}
}
if (x >(workArea_TL.GetX() + 160.0f) && x < (workArea_TL.GetX() + 180.0f) && y >(workArea_BR.GetY() - 620.0f) && y < (workArea_BR.GetY() - 600.0f))
{
if (!teddy)
{
teapot = false;
desmond = false;
teddy = true;
C3P0 = false;
ResetAllSliders();
}
}
if (x >(workArea_TL.GetX() + 160.0f) && x < (workArea_TL.GetX() + 180.0f) && y >(workArea_BR.GetY() - 670.0f) && y < (workArea_BR.GetY() - 650.0f))
{
if (!C3P0)
{
teapot = false;
desmond = false;
teddy = false;
C3P0 = true;
ResetAllSliders();
}
}
return false;
}