} //Disconnect void ListenForLearnRequest() { //Check for controller programming request. In this case keys '1' - '9' will trigger //controllers 1-9 into learn mode, (only one at a time please!) and '0' and 'a' will trigger //controllers 10 and 11 respectively. You'll most likely want to build the learning mode into your //project's UI if (Input.GetKeyDown(KeyCode.Alpha1)) { InputPlus.LearnController(1); } if (Input.GetKeyDown(KeyCode.Alpha2)) { InputPlus.LearnController(2); } if (Input.GetKeyDown(KeyCode.Alpha3)) { InputPlus.LearnController(3); } if (Input.GetKeyDown(KeyCode.Alpha4)) { InputPlus.LearnController(4); } if (Input.GetKeyDown(KeyCode.Alpha5)) { InputPlus.LearnController(5); } if (Input.GetKeyDown(KeyCode.Alpha6)) { InputPlus.LearnController(6); } if (Input.GetKeyDown(KeyCode.Alpha7)) { InputPlus.LearnController(7); } if (Input.GetKeyDown(KeyCode.Alpha8)) { InputPlus.LearnController(8); } if (Input.GetKeyDown(KeyCode.Alpha9)) { InputPlus.LearnController(9); } if (Input.GetKeyDown(KeyCode.Alpha0)) { InputPlus.LearnController(10); } if (Input.GetKeyDown(KeyCode.A)) { InputPlus.LearnController(11); } if (Input.GetKeyDown(KeyCode.Z)) { //InputPlus.LearnControllerSingle(1, ControllerVarEnum.dpad_up); // LearnControllerSingle is currently an experimental feature, it's likely problems exist } } //ListenForLearnRequest