def test_on_key(self): val = libretroControllers.getConfigValue( controllersConfig.Input("down", "key", "2", "1")) self.assertEquals("2", val) val = libretroControllers.getConfigValue( controllersConfig.Input("down", "key", "3", "8")) self.assertEquals("3", val)
def test_on_hat(self): val = libretroControllers.getConfigValue( controllersConfig.Input("down", "hat", "2", "1")) self.assertEquals("h2up", val) val = libretroControllers.getConfigValue( controllersConfig.Input("down", "hat", "3", "8")) self.assertEquals("h3left", val)
def test_on_axis(self): val = libretroControllers.getConfigValue( controllersConfig.Input("down", "axis", "10", "1")) self.assertEquals("+10", val) val = libretroControllers.getConfigValue( controllersConfig.Input("down", "axis", "10", "-1")) self.assertEquals("-10", val)
def test_on_key(self): val = libretroControllers.getConfigValue(controllersConfig.Input("down", "key", "2", "1")) self.assertEquals("2", val) val = libretroControllers.getConfigValue(controllersConfig.Input("down", "key", "3", "8")) self.assertEquals("3", val)
def test_on_hat(self): val = libretroControllers.getConfigValue(controllersConfig.Input("down", "hat", "2", "1")) self.assertEquals("h2up", val) val = libretroControllers.getConfigValue(controllersConfig.Input("down", "hat", "3", "8")) self.assertEquals("h3left", val)
def test_on_axis(self): val = libretroControllers.getConfigValue(controllersConfig.Input("down", "axis", "10", "1")) self.assertEquals("+10", val) val = libretroControllers.getConfigValue(controllersConfig.Input("down", "axis", "10", "-1")) self.assertEquals("-10", val)
def test_on_button(self): val = libretroControllers.getConfigValue(controllersConfig.Input("a", "button", "10", "1")) self.assertEquals("10", val)
def test_on_button(self): val = libretroControllers.getConfigValue( controllersConfig.Input("a", "button", "10", "1")) self.assertEquals("10", val)