# 需要导入模块: import sdl2 [as 别名]# 或者: from sdl2 importSDL_KEYUP[as 别名]deforb_turn(self, activity):events = sdl2.ext.get_events()ifevents: activity.mark( l=self, s='sdl2 event(s)')foreventinevents:ifevent.type == sdl2.SDL_QUIT:raiseSolentQuitException()elifevent.type ...