예제 #1
0
        // Note: Causing performance problems. Need to examine reason (possible expensive key generation?)
        public TranslatedInput GetTranslatedInput(RawInput inRawInput)
        {
            if (_inputMappings.ContainsKey(inRawInput))
            {
                return(_inputMappings[inRawInput]);
            }

            throw new UnassignedInputMappingException(inRawInput);
        }
예제 #2
0
 public UnassignedInputMappingException(RawInput unassignedInput)
     : base("Could not find an input mapped to" + unassignedInput.InputName)
 {
 }