def update(self, events, mouse_pos): self.cursor = mouse_pos if self.first: self.first = False SND.music_title() for event in events: if event.mousedown: if self.currently_over != None: self.do_command(self.currently_over) elif event.keydown: if event.key == 'enter': self.do_command('new_game') elif event.key == 't': self.do_command('tutorial') elif event.key == 'o': self.do_command('options')