@@ -334,8 +334,8 @@ void InputEditorWindow::DrawButtonLineEditMappingButton(uint8_t port, CONTROLLER
334
334
ImGui::SetNextItemWidth (SCALE_IMGUI_SIZE (160 .0f ));
335
335
if (ImGui::SliderInt (StringHelper::Sprintf (" ##Stick Axis Threshold%s" , id.c_str ()).c_str (),
336
336
&stickAxisThreshold, 0 , 100 , " %d%%" , ImGuiSliderFlags_AlwaysClamp)) {
337
- globalSettings->SetStickAxisThresholdPercentage (stickAxisThreshold);
338
- globalSettings->SaveToConfig ();
337
+ globalSettings->SetStickAxisThresholdPercentage (stickAxisThreshold);
338
+ globalSettings->SaveToConfig ();
339
339
}
340
340
ImGui::SameLine (0 .0f , 0 .0f );
341
341
if (stickAxisThreshold == 100 ) {
@@ -372,8 +372,8 @@ void InputEditorWindow::DrawButtonLineEditMappingButton(uint8_t port, CONTROLLER
372
372
ImGui::SetNextItemWidth (SCALE_IMGUI_SIZE (160 .0f ));
373
373
if (ImGui::SliderInt (StringHelper::Sprintf (" ##Trigger Axis Threshold%s" , id.c_str ()).c_str (),
374
374
&triggerAxisThreshold, 0 , 100 , " %d%%" , ImGuiSliderFlags_AlwaysClamp)) {
375
- globalSettings->SetTriggerAxisThresholdPercentage (triggerAxisThreshold);
376
- globalSettings->SaveToConfig ();
375
+ globalSettings->SetTriggerAxisThresholdPercentage (triggerAxisThreshold);
376
+ globalSettings->SaveToConfig ();
377
377
}
378
378
ImGui::SameLine (0 .0f , 0 .0f );
379
379
if (triggerAxisThreshold == 100 ) {
@@ -1186,7 +1186,8 @@ void InputEditorWindow::DrawDeviceNameButtons() {
1186
1186
ImGui::PopStyleColor ();
1187
1187
ImGui::PopStyleColor ();
1188
1188
1189
- for (const auto & name : Context::GetInstance ()->GetControlDeck ()->GetConnectedPhysicalDeviceManager ()->GetConnectedSDLGamepadNames ()) {
1189
+ for (const auto & name :
1190
+ Context::GetInstance ()->GetControlDeck ()->GetConnectedPhysicalDeviceManager ()->GetConnectedSDLGamepadNames ()) {
1190
1191
auto buttonColor = ImGui::GetStyleColorVec4 (ImGuiCol_Button);
1191
1192
auto buttonHoveredColor = ImGui::GetStyleColorVec4 (ImGuiCol_ButtonHovered);
1192
1193
GetButtonColorsForPhysicalDeviceType (PhysicalDeviceType::SDLGamepad, buttonColor, buttonHoveredColor);
@@ -1348,7 +1349,8 @@ void InputEditorWindow::DrawSetDefaultsButton(uint8_t portIndex) {
1348
1349
ImGui::PopStyleColor ();
1349
1350
ImGui::PopStyleColor ();
1350
1351
if (ImGui::BeginPopupModal (" Set Defaults for Gamepad (SDL)" , NULL , ImGuiWindowFlags_AlwaysAutoResize)) {
1351
- ImGui::Text (" This will clear all existing mappings for\n Gamepad (SDL) on port %d.\n\n Continue?" , portIndex + 1 );
1352
+ ImGui::Text (" This will clear all existing mappings for\n Gamepad (SDL) on port %d.\n\n Continue?" ,
1353
+ portIndex + 1 );
1352
1354
if (ImGui::Button (" Cancel" )) {
1353
1355
shouldClose = true ;
1354
1356
ImGui::CloseCurrentPopup ();
0 commit comments