#NEWLINE# def handleEvents( self , event ) : #NEWLINE# #INDENT# self . load_frames ( ) #NEWLINE# self . load_idle_frames ( ) #NEWLINE# if ( event . type == KEYDOWN ) : #NEWLINE# #INDENT# if ( ( event . key == K_i ) and ( not self . jumping ) ) : #NEWLINE# #INDENT# self . vspeed = PLAYER . jump_speed #NEWLINE# #UNINDENT# #UNINDENT# if ( event . type == KEYUP ) : #NEWLINE# #INDENT# if ( event . key == K_a ) : #NEWLINE# #INDENT# self . hspeed = 0 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( event . key == K_d ) : #NEWLINE# #INDENT# self . hspeed = 0 #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if ( self . type == MOUSEBUTTONUP ) : #NEWLINE# #INDENT# self . hspeed = 0