private void BUT_Joystick_Click(object sender, EventArgs e) { Form joy = new JoystickSetup(); ThemeManager.ApplyThemeTo(joy); joy.Show(); }
private void BUT_Joystick_Click(object sender, EventArgs e) { Form joy = new JoystickSetup(); MainV2.fixtheme(joy); joy.Show(); }
private static JoystickSetup ParseJoystickSetup(XmlNode joystickSetupNode) { var setup = new JoystickSetup(); setup.Name = joystickSetupNode.GetAttribute("Name"); XmlNodeList deviceNodes = joystickSetupNode.SelectNodes("JoystickDevice"); foreach (XmlNode deviceNode in deviceNodes) { setup.Devices.Add(ParseDevice(deviceNode)); } return(setup); }
static public bool InitializeJoystickSetup() { if (joystickSetupGO == null) { joystickSetupGO = (GameObject.Instantiate((GameObject)Resources.Load("FibrumResources/JoystickSetup", typeof(GameObject))) as GameObject).GetComponent <JoystickSetup>(); JoystickSetupParameters jsp = GameObject.FindObjectOfType <JoystickSetupParameters>(); if (jsp != null) { if (jsp.enabled) { for (int k = 0; k < jsp.controlsToSetup.Length; k++) { if ((int)jsp.controlsToSetup[k].controlToSetup < 100) { if (jsp.controlsToSetup[k].checkDirection == JoystickSetupParameters.CheckDirection.Disable) { joystickSetupGO.SetControl((FibrumInput.Axis)((int)jsp.controlsToSetup[k].controlToSetup), jsp.controlsToSetup[k].description, jsp.controlsToSetup[k].picture); } else if (jsp.controlsToSetup[k].checkDirection == JoystickSetupParameters.CheckDirection.CheckForward) { joystickSetupGO.SetControl((FibrumInput.Axis)((int)jsp.controlsToSetup[k].controlToSetup), true, jsp.controlsToSetup[k].description, jsp.controlsToSetup[k].picture); } else if (jsp.controlsToSetup[k].checkDirection == JoystickSetupParameters.CheckDirection.CheckBack) { joystickSetupGO.SetControl((FibrumInput.Axis)((int)jsp.controlsToSetup[k].controlToSetup), false, jsp.controlsToSetup[k].description, jsp.controlsToSetup[k].picture); } } else { joystickSetupGO.SetControl((FibrumInput.Button)((int)jsp.controlsToSetup[k].controlToSetup - 100), jsp.controlsToSetup[k].description, jsp.controlsToSetup[k].picture); } } } } return(true); } else { return(false); } }
private void BUT_Joystick_Click(object sender, EventArgs e) { Form joy = new JoystickSetup(); ThemeManager.ApplyThemeTo(joy); joy.Show(); }
private void BUT_Joystick_Click(object sender, EventArgs e) { Form joy = new JoystickSetup(); MainV2.fixtheme(joy); joy.Show(); }
public static bool InitializeJoystickSetup() { if( joystickSetupGO==null ) { joystickSetupGO = (GameObject.Instantiate((GameObject)Resources.Load("FibrumResources/JoystickSetup",typeof(GameObject))) as GameObject).GetComponent<JoystickSetup>(); JoystickSetupParameters jsp = GameObject.FindObjectOfType<JoystickSetupParameters>(); if( jsp!=null ) { if( jsp.enabled ) { for( int k=0; k<jsp.controlsToSetup.Length; k++ ) { if( (int)jsp.controlsToSetup[k].controlToSetup<100 ) { if( jsp.controlsToSetup[k].checkDirection == JoystickSetupParameters.CheckDirection.Disable ) joystickSetupGO.SetControl((FibrumInput.Axis)((int)jsp.controlsToSetup[k].controlToSetup),jsp.controlsToSetup[k].description,jsp.controlsToSetup[k].picture); else if( jsp.controlsToSetup[k].checkDirection == JoystickSetupParameters.CheckDirection.CheckForward ) joystickSetupGO.SetControl((FibrumInput.Axis)((int)jsp.controlsToSetup[k].controlToSetup),true,jsp.controlsToSetup[k].description,jsp.controlsToSetup[k].picture); else if( jsp.controlsToSetup[k].checkDirection == JoystickSetupParameters.CheckDirection.CheckBack ) joystickSetupGO.SetControl((FibrumInput.Axis)((int)jsp.controlsToSetup[k].controlToSetup),false,jsp.controlsToSetup[k].description,jsp.controlsToSetup[k].picture); } else { joystickSetupGO.SetControl((FibrumInput.Button)((int)jsp.controlsToSetup[k].controlToSetup-100),jsp.controlsToSetup[k].description,jsp.controlsToSetup[k].picture); } } } } return true; } else return false; }
private void BUT_Joystick_Click(object sender, EventArgs e) { JoystickSetup.ShowForm(); }