public void MouseEngine()
{
_logicClick = _mouseB > 0; // click signal is available for Logic for one gamecycle
if (Logic.ScriptVariables[Logic.MOUSE_STOP] == 0)
{
if ((Logic.ScriptVariables[Logic.MOUSE_STATUS] & (1 << 1)) != 0)
{
PointerEngine((ushort)(MouseX + Logic.TOP_LEFT_X), (ushort)(MouseY + Logic.TOP_LEFT_Y));
if ((Logic.ScriptVariables[Logic.MOUSE_STATUS] & (1 << 2)) != 0) //buttons enabled?
ButtonEngine1();
}
}
_mouseB = 0; //don't save up buttons
}