Detect mouse in an area?

BlitzMax Forums/BlitzMax Programming/Detect mouse in an area?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi, I need a little function where I can specify 4 points and if the mouse crosses into the area the 4 points set out I will return true.

Like :


MouseInArea(point1,point2,point3,point4)



heres a pick to explain a little more, I could attack am image to the mouse pointer and use image collide but that seems messy, must be a way to know if the mouse moves between the 4 points.