mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Merge pull request #4537 from RicBent/master
Added Debug/GPIO14 Buttons
This commit is contained in:
		
						commit
						941d241e7d
					
				
					 9 changed files with 67 additions and 11 deletions
				
			
		|  | @ -27,8 +27,9 @@ Config::~Config() { | |||
| } | ||||
| 
 | ||||
| const std::array<int, Settings::NativeButton::NumButtons> Config::default_buttons = { | ||||
|     Qt::Key_A, Qt::Key_S, Qt::Key_Z, Qt::Key_X, Qt::Key_T, Qt::Key_G, Qt::Key_F, Qt::Key_H, | ||||
|     Qt::Key_Q, Qt::Key_W, Qt::Key_M, Qt::Key_N, Qt::Key_1, Qt::Key_2, Qt::Key_B, | ||||
|     Qt::Key_A, Qt::Key_S, Qt::Key_Z, Qt::Key_X, Qt::Key_T, Qt::Key_G, | ||||
|     Qt::Key_F, Qt::Key_H, Qt::Key_Q, Qt::Key_W, Qt::Key_M, Qt::Key_N, | ||||
|     Qt::Key_O, Qt::Key_P, Qt::Key_1, Qt::Key_2, Qt::Key_B, | ||||
| }; | ||||
| 
 | ||||
| const std::array<std::array<int, 5>, Settings::NativeAnalog::NumAnalogs> Config::default_analogs{{ | ||||
|  |  | |||
|  | @ -100,9 +100,11 @@ ConfigureInput::ConfigureInput(QWidget* parent) | |||
|     setFocusPolicy(Qt::ClickFocus); | ||||
| 
 | ||||
|     button_map = { | ||||
|         ui->buttonA,        ui->buttonB,        ui->buttonX,         ui->buttonY,  ui->buttonDpadUp, | ||||
|         ui->buttonDpadDown, ui->buttonDpadLeft, ui->buttonDpadRight, ui->buttonL,  ui->buttonR, | ||||
|         ui->buttonStart,    ui->buttonSelect,   ui->buttonZL,        ui->buttonZR, ui->buttonHome, | ||||
|         ui->buttonA,      ui->buttonB,        ui->buttonX,        ui->buttonY, | ||||
|         ui->buttonDpadUp, ui->buttonDpadDown, ui->buttonDpadLeft, ui->buttonDpadRight, | ||||
|         ui->buttonL,      ui->buttonR,        ui->buttonStart,    ui->buttonSelect, | ||||
|         ui->buttonDebug,  ui->buttonGpio14,   ui->buttonZL,       ui->buttonZR, | ||||
|         ui->buttonHome, | ||||
|     }; | ||||
| 
 | ||||
|     analog_map_buttons = {{ | ||||
|  | @ -273,7 +275,8 @@ void ConfigureInput::ClearAll() { | |||
| 
 | ||||
| void ConfigureInput::updateButtonLabels() { | ||||
|     for (int button = 0; button < Settings::NativeButton::NumButtons; button++) { | ||||
|         button_map[button]->setText(ButtonToText(buttons_param[button])); | ||||
|         if (button_map[button]) | ||||
|             button_map[button]->setText(ButtonToText(buttons_param[button])); | ||||
|     } | ||||
| 
 | ||||
|     for (int analog_id = 0; analog_id < Settings::NativeAnalog::NumAnalogs; analog_id++) { | ||||
|  |  | |||
|  | @ -7,7 +7,7 @@ | |||
|     <x>0</x> | ||||
|     <y>0</y> | ||||
|     <width>370</width> | ||||
|     <height>534</height> | ||||
|     <height>595</height> | ||||
|    </rect> | ||||
|   </property> | ||||
|   <property name="windowTitle"> | ||||
|  | @ -549,6 +549,42 @@ | |||
|           </item> | ||||
|          </layout> | ||||
|         </item> | ||||
|         <item row="2" column="1"> | ||||
|          <layout class="QVBoxLayout" name="verticalLayout_33"> | ||||
|           <item> | ||||
|            <widget class="QLabel" name="label_41"> | ||||
|             <property name="text"> | ||||
|              <string>GPIO14:</string> | ||||
|             </property> | ||||
|            </widget> | ||||
|           </item> | ||||
|           <item> | ||||
|            <widget class="QPushButton" name="buttonGpio14"> | ||||
|             <property name="text"> | ||||
|              <string/> | ||||
|             </property> | ||||
|            </widget> | ||||
|           </item> | ||||
|          </layout> | ||||
|         </item> | ||||
|         <item row="2" column="0"> | ||||
|          <layout class="QVBoxLayout" name="verticalLayout_32"> | ||||
|           <item> | ||||
|            <widget class="QLabel" name="label_40"> | ||||
|             <property name="text"> | ||||
|              <string>Debug:</string> | ||||
|             </property> | ||||
|            </widget> | ||||
|           </item> | ||||
|           <item> | ||||
|            <widget class="QPushButton" name="buttonDebug"> | ||||
|             <property name="text"> | ||||
|              <string/> | ||||
|             </property> | ||||
|            </widget> | ||||
|           </item> | ||||
|          </layout> | ||||
|         </item> | ||||
|        </layout> | ||||
|       </widget> | ||||
|      </item> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue