I just created a zero's matrix of size screenWidth x screenHeight. If there's a button at that pixel I filled that matrix entry with the button's index location in an array of its fellow buttons. Checking the mouse screen xy against this matrix will let you tell if you're hovering and what button you're over... This is probably not the greatest idea but I never found any better solutions.
... View more