def test_padtype_psx(self):
     basicController = controllersConfig.Controller("contr1", "joypad",
                                                    "GUID1", "0",
                                                    "Joypad1RealName",
                                                    axisAndBtnsInputs)
     padtype = libretroControllers.getAnalogMode(basicController, psx)
     self.assertEqual("0", padtype)
 def test_padtype_only_hats(self):
     basicController = controllersConfig.Controller("contr1", "joypad",
                                                    "GUID1", "0",
                                                    "Joypad1RealName",
                                                    onlyHatsInputs)
     padtype = libretroControllers.getAnalogMode(basicController, snes)
     self.assertEqual("1", padtype)
 def test_padtype_psx(self):
     basicController = controllersConfig.Controller("contr1", "joypad", "GUID1", '1', "0", "Joypad1RealName",
                                                    axisAndBtnsInputs)
     padtype = libretroControllers.getAnalogMode(basicController, psx)
     # self.assertEqual("0", padtype)
 def test_padtype_only_hats(self):
     basicController = controllersConfig.Controller("contr1", "joypad", "GUID1", '1', "0", "Joypad1RealName",
                                                    onlyHatsInputs)
     padtype = libretroControllers.getAnalogMode(basicController, snes)
     self.assertEqual("1", padtype)