@@ -485,17 +485,11 @@ def _update_input(self, device="", config=""):
485
485
def _mux_selected (self , checked ):
486
486
if not checked :
487
487
return
488
- #self.joystickReader.stop_input()
489
- #self.joystickReader.stop_input()
488
+
490
489
selected_mux_name = str (self .sender ().text ())
491
490
self .joystickReader .set_mux (name = selected_mux_name )
492
491
493
- # If MUX supports more than one device, de-select all
494
- #if self.joystickReader.get_mux_supported_dev_count() > 1:
495
- # for c in self._menu_devices.actions():
496
- # c.setChecked(False)
497
-
498
- logger .info ("Selected mux supports {} devices" .format (self .joystickReader .get_mux_supported_dev_count ()))
492
+ logger .debug ("Selected mux supports {} devices" .format (self .joystickReader .get_mux_supported_dev_count ()))
499
493
self ._adjust_nbr_of_selected_devices ()
500
494
501
495
def _get_saved_device_mapping (self , device_name ):
@@ -527,14 +521,9 @@ def _adjust_nbr_of_selected_devices(self):
527
521
nbr_of_supported = self .joystickReader .get_mux_supported_dev_count ()
528
522
while len (self ._input_dev_stack ) > nbr_of_supported :
529
523
to_close = self ._input_dev_stack .pop (0 )
530
- logger .info ("Supports {} open ({}),"
531
- "closing {}" .format (nbr_of_supported ,
532
- len (self ._input_dev_stack ),
533
- to_close ))
534
524
# Close and de-select it in the UI
535
525
self .joystickReader .stop_input (to_close )
536
526
for c in self ._menu_devices .actions ():
537
- logger .info ("Checking {}" .format (c .text ()))
538
527
if c .text () == to_close :
539
528
c .setChecked (False )
540
529
@@ -564,7 +553,6 @@ def _inputdevice_selected(self, checked):
564
553
if self .joystickReader .get_mux_supported_dev_count () == 1 :
565
554
preferred_config = self .joystickReader .get_saved_device_mapping (selected_device_name )
566
555
if preferred_config :
567
- logger .info ("Preferred config is {} for {}" .format (preferred_config , selected_device_name ))
568
556
for c in self ._menu_mappings .actions ():
569
557
if c .text () == preferred_config :
570
558
c .setChecked (True )
0 commit comments