mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Merge pull request #5755 from vitor-k/mod_used
citra_qt/configure_input: Account for analog buttons when checking for used buttons
This commit is contained in:
		
						commit
						f66ba43e0c
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		|  | @ -368,6 +368,18 @@ QList<QKeySequence> ConfigureInput::GetUsedKeyboardKeys() { | |||
|             list << QKeySequence(button_param.Get("code", 0)); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     for (int analog_id = 0; analog_id < Settings::NativeAnalog::NumAnalogs; ++analog_id) { | ||||
|         auto analog_param = analogs_param[analog_id]; | ||||
|         if (analog_param.Get("engine", "") == "analog_from_button") { | ||||
|             for (int sub_button_id = 0; sub_button_id < ANALOG_SUB_BUTTONS_NUM; ++sub_button_id) { | ||||
|                 const Common::ParamPackage sub_button{ | ||||
|                     analog_param.Get(analog_sub_buttons[sub_button_id], "")}; | ||||
|                 list << QKeySequence(sub_button.Get("code", 0)); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     return list; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue