Did I find the right examples for you? yes no

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

src/g/a/GameDevelopment-HEAD/examples/pygame/basics/pygame_test.py   GameDevelopment(Download)
	for i in range(joysticks):
		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)
        for n in range(pygame.joystick.get_count()): #
            stick = pygame.joystick.Joystick(n)
            stick.init() # init instance
            # report joystick charateristics #
            lgstr = '-'*20

src/c/r/crazyflie-clients-python-HEAD/lib/cfclient/utils/joystick/pygamejoystick.py   crazyflie-clients-python(Download)
 
        self.joy = pygame.joystick.Joystick(device_id)
        self.joy.init()
 
        self.axes = list(0 for i in range(self.joy.get_numaxes()))

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

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

src/p/s/psychopy-HEAD/psychopy/hardware/joystick/__init__.py   psychopy(Download)
            pygame.joystick.init()
            self._device=pygame.joystick.Joystick(id)
            self._device.init()
            self.name=self._device.get_name()
    def getName(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:

src/c/r/crazyflie-clients-python-HEAD/lib/cfclient/utils/pygamereader.py   crazyflie-clients-python(Download)
        self.inputMap = inputMap
        self.j = pygame.joystick.Joystick(deviceId)
        self.j.init()
 
    def read_input(self):
    def enableRawReading(self, deviceId):
        """Enable reading of raw values (without mapping)"""
        self.j = pygame.joystick.Joystick(deviceId)
        self.j.init()
 

src/d/u/duinobot-0.13-2/joystick.py   duinobot(Download)
		Joystick.__refresh()
		self.js = pygame.joystick.Joystick(joystickNumber)
		self.js.init()
		self.robot = robot
	def play(self):

  1 | 2  Next