I have this code, with mouseOver being initialised to FALSE, and draw() only draws lines for the crossfair if the mouseOver is TRUE. Moving the mouse over the control successfully activates the crosshair, but moving away from the control does not.
void OnMouseOver(int x, int y, IMouseMod* pMod)
mouseOver = TRUE;
crosshairX = x;
crosshairY = y;
mouseOver = FALSE;
For testing, I commented out all of OnMouseOver and put the code into onMouseOut, and it's not being called at all! I called pGraphics->HandleMouseOver(true) when setting up the GUI, is there something else I'm missing?