#NEWLINE# def keypress( self , down , x , y , z , h , p , r ) : #NEWLINE# #INDENT# scale = ( 1 if down else ( - 1 ) ) #NEWLINE# self . cam_pos_x += ( scale * x ) #NEWLINE# self . cam_pos_y += ( r * y ) #NEWLINE# self . cam_pos_z += ( scale * z ) #NEWLINE# self . cam_h += ( scale * h ) #NEWLINE# self . cam_p += ( scale * p ) #NEWLINE# self . cam_r += ( scale * r )