public static KeyMappingResult GetKeyMappingResult(this IKeyMap keyMap, string str, KeyRemapMode mode) { return(keyMap.GetKeyMapping(KeyNotationUtil.StringToKeyInputSet(str), mode)); }
public static IEnumerable <KeyInput> GetKeyMapping(this IKeyMap keyMap, KeyInputSet kiSet, KeyRemapMode mode) { return(keyMap.GetKeyMapping(kiSet, mode).AsMapped().Item.KeyInputs); }
public static KeyMappingResult GetKeyMappingResult(this IKeyMap keyMap, KeyInputSet set, KeyRemapMode mode) { return(keyMap.GetKeyMapping(set, mode)); }
public void MapWithNoRemap_AlphaToAlpha() { Assert.IsTrue(_map.MapWithNoRemap("a", "b", KeyRemapMode.Normal)); var ret = _map.GetKeyMapping('a', KeyRemapMode.Normal).Single(); Assert.AreEqual(KeyInputUtil.CharToKeyInput('b'), ret); }