![]() Recognizer.SpeechRecognized += SpeechRecognized Recognizer.LoadGrammar(new Grammar(grammar)) Recognizer.SetInputToDefaultAudioDevice() Recognizer = new SpeechRecognitionEngine() Rajout des choix à la grammaire du prog MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error) ĪutoScaleDimensions = new SizeF(6F, 13F) button_BluetoothAddDevice.Enabled = false Prevent connect being pressed more than once. WiiDevice.SetLEDs(true, false, false, false) WiiDevice.SetReportType(InputReport.IRAccel, false) // FALSE = DEVICE ONLY SENDS UPDATES WHEN VALUES CHANGE! Connect and send a request to verify it worked. WiiDevice.WiimoteExtensionChanged += wiiDevice_WiimoteExtensionChanged WiiDevice.WiimoteChanged += wiiDevice_WiimoteChanged If (response = DialogResult.No) continue If (response = DialogResult.Cancel) return Var response = MessageBox.Show("Connect to HID " + devicePathId + " device " + (i + 1) + " of " + deviceCollection.Count + " ?", "Multiple Wii Devices Found", MessageBoxButtons.YesNoCancel) Var devicePathId = new Regex("e_pid&.*?&(.*?)&").Match(wiiDevice.HIDDevicePath).() Var deviceCollection = new WiimoteCollection() Private void button_Connect_Click(object sender, EventArgs e)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |