rect = pygame.Rect(x,y,width,height) mouse = pygame.mouse.get_pos() mouse_on_rect = rect.collidepoint(mouse) # this will tell you if the mouse(a 1x1 rect) is on the rect variable)