예제 #1
0
 def test_sdl2_for_fc30pro(self):
     controllers = dict()
     controllers['1'] = Controller("contr1", "joypad",
                                   "05000000103800000900000000010000", '1',
                                   "0", "szmy-power Ltd. Joypad ", dict())
     driver = libretroControllers.getInputDriver(controllers)
     self.assertEquals("sdl2", driver)
예제 #2
0
 def test_sdl2_for_nes30pro(self):
     controllers = dict()
     controllers['1'] = Controller("contr1", "joypad",
                                   "030000003512000012ab000010010000", '1',
                                   "0", "Bluetooth Wireless Controller ",
                                   dict())
     driver = libretroControllers.getInputDriver(controllers)
     self.assertEquals("sdl2", driver)
예제 #3
0
 def test_udev_by_default(self):
     controllers = dict()
     controllers['1'] = Controller("contr1", "joypad", "GUID1", '1', "0",
                                   "Joypad1RealName", dict())
     driver = libretroControllers.getInputDriver(controllers)
     self.assertEquals("udev", driver)
 def test_sdl2_for_fc30pro(self):
     controllers = dict()
     controllers['1'] =  Controller("contr1", "joypad", "05000000103800000900000000010000", '1',  "0", "szmy-power Ltd. Joypad ", dict())
     driver = libretroControllers.getInputDriver(controllers)
     self.assertEquals("sdl2", driver)
 def test_sdl2_for_nes30pro(self):
     controllers = dict()
     controllers['1'] =  Controller("contr1", "joypad", "030000003512000012ab000010010000", '1',  "0", "Bluetooth Wireless Controller ", dict())
     driver = libretroControllers.getInputDriver(controllers)
     self.assertEquals("sdl2", driver)
 def test_udev_by_default(self):
     controllers = dict()
     controllers['1'] =  Controller("contr1", "joypad", "GUID1", '1',  "0", "Joypad1RealName", dict())
     driver = libretroControllers.getInputDriver(controllers)
     self.assertEquals("udev", driver)