def notify(self, event): if event.type == pygame.MOUSEBUTTONDOWN: if event.button == 1: self.onLeftClick(event) elif self.selected: self.input.update(event)