private void RefreshInputsList()
        {
            listBox1.IsEnabled = true;
            NoDevicesFound     = false;

            listBox1.ItemsSource = null;
            listBox1.Items.Clear();
            listBox1.ItemsSource = JoystickReader.GetJoysticks();
            if (JoystickReader.GetJoystickCount() == 0)
            {
                NoDevicesFound = true;
                string no_item_found = Program.LanguageResource.GetString("NoControllerFound");
                if (no_item_found == null)
                {
                    no_item_found = "";
                }
                listBox1.IsEnabled   = false;
                listBox1.ItemsSource = null;
                listBox1.Items.Add(no_item_found);
                selectButton.IsEnabled = false;
                listBox1.SelectedIndex = -1;
            }
        }