Did I find the right examples for you? yes no

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

src/g/a/GameDevelopment-HEAD/examples/pygame/basics/pygame_test.py   GameDevelopment(Download)
		joystick = pygame.joystick.Joystick(i)
		joystick.init()
		name = joystick.get_name()
		print "Joystick " + str(i) + " name: " + name
 

src/i/n/interface2instrument-HEAD/HIDServer/hidserver.py   interface2instrument(Download)
            # report joystick charateristics #
            lgstr = '-'*20
            lgstr += '\nEnabled HID device: ' + stick.get_name()
            lgstr += '\nit has the following devices :'
            lgstr += '\n--> buttons : '+ str(stick.get_numbuttons())
            logging.info(lgstr)
 
            joy.append(stick.get_name())
            sticks.append(stick)
    except pygame.error:

src/c/r/crazyflie-clients-python-HEAD/lib/cfclient/utils/joystick/pygamejoystick.py   crazyflie-clients-python(Download)
        for i in range(0, count):
            joy = pygame.joystick.Joystick(i)
            devices[i] = joy.get_name()
 
        return devices

src/m/a/MAVProxy-1.3.3/MAVProxy/modules/mavproxy_joystick.py   MAVProxy(Download)
                j = pygame.joystick.Joystick(i)
                j.init() # init instance
                name = j.get_name()
                print 'joystick found: ' + name
                for jtype in joymap:

src/m/a/MAVProxy-HEAD/MAVProxy/modules/mavproxy_joystick.py   MAVProxy(Download)
                j = pygame.joystick.Joystick(i)
                j.init() # init instance
                name = j.get_name()
                print('joystick found: ' + name)
                for jtype in joymap:

src/p/s/psychopy-HEAD/psychopy/hardware/joystick/__init__.py   psychopy(Download)
            self._device=pygame.joystick.Joystick(id)
            self._device.init()
            self.name=self._device.get_name()
    def getName(self):
        """Returns the manufacturer-defined name describing the device

src/d/u/duinobot-0.13-2/joystick.py   duinobot(Download)
	for id in range(pygame.joystick.get_count()):
		j = pygame.joystick.Joystick(id)
		joys.append((id, j.get_name(),))
		j.quit()
	return joys

src/c/r/crazyflie-clients-python-HEAD/lib/cfclient/utils/pygamereader.py   crazyflie-clients-python(Download)
        for i in range(0,nbrOfInputs):
            j = pygame.joystick.Joystick(i)
            name = j.get_name()
            if names.count(name) > 0:
                name = "{0} #{1}".format(name, names.count(name) + 1)