Example #1
0
        public static InputControl CreateInputControlFromMappings(Dictionary<String, String> mappings, InputMapping mappingToCreateFor)
        {
            if (mappingToCreateFor is ButtonBasedInputMapping)
                return new ButtonBasedInputControl(mappings);
            else if (mappingToCreateFor is SpeechBasedInputMapping)
                return new SpeechBasedInputControl(mappings);

            throw new Exception("No suitable input mapping class found to create the input controls for");
        }
 public void CopyMappingsFrom(InputMapping mapping)
 {
     SetControls(mapping.controls);
 }
 public void CopyMappingsFrom(InputMapping mapping)
 {
     SetControls(mapping.controls);
 }