Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/i/n/interface2instrument-HEAD/HIDServer/hidserver.py   interface2instrument(Download)
            lgstr += '\nEnabled HID device: ' + stick.get_name()
            lgstr += '\nit has the following devices :'
            lgstr += '\n--> buttons : '+ str(stick.get_numbuttons())
            lgstr += '\n--> balls : '+ str(stick.get_numballs())
            lgstr += '\n--> axes : '+ str(stick.get_numaxes())

src/c/r/crazyflie-clients-python-HEAD/lib/cfclient/utils/joystick/pygamejoystick.py   crazyflie-clients-python(Download)
 
        self.axes = list(0 for i in range(self.joy.get_numaxes()))
        self.buttons = list(0 for i in range(self.joy.get_numbuttons()))
 
    def close(self):

src/k/i/Kivy-1.8.0/kivy/input/providers/androidjoystick.py   Kivy(Download)
    def create_joystick(self, index):
        Logger.info('Android: create joystick <%d>' % index)
        js = pygame.joystick.Joystick(index)
        js.init()
        if js.get_numbuttons() == 0:

src/k/i/kivy-HEAD/kivy/input/providers/androidjoystick.py   kivy(Download)
    def create_joystick(self, index):
        Logger.info('Android: create joystick <%d>' % index)
        js = pygame.joystick.Joystick(index)
        js.init()
        if js.get_numbuttons() == 0: