#NEWLINE# def create_joystick( self , index ) : #NEWLINE# #INDENT# Logger . info ( ( 'Android: create joystick <%d>' % index ) ) #NEWLINE# js = pygame . joystick . Joystick ( index ) #NEWLINE# js . init ( ) #NEWLINE# if ( js . get_numbuttons ( ) == 0 ) : #NEWLINE# #INDENT# Logger . info ( ( 'Android: discard joystick <%d> cause no button' % index ) ) #NEWLINE# return #NEWLINE# #UNINDENT# self . joysticks . append ( js )