private bool AttachJoystick() { try { //Initialise joystick: string name = null; if (Settings.Controller != null) { name = Settings.Controller; } joystick = new SimpleJoystick(name); //Start joystick input timer: joystickTimer.Start(); return(true); } catch (Exception ex) { Log.Write(ex.ToString()); return(false); } }
private bool AttachJoystick() { try { //Initialise joystick: string name = null; if (ConfigurationManager.AppSettings["Controller"] != null) { name = ConfigurationManager.AppSettings["Controller"]; } joystick = new SimpleJoystick(name); //comboController.SelectedText = ConfigurationManager.AppSettings["Controller"]; //Start joystick input timer: joystickTimer.Start(); return(true); } catch (Exception ex) { Log.Write(ex.ToString()); return(false); } }