diff --git a/UI/EmuScreen.cpp b/UI/EmuScreen.cpp index b38fb6c3b3..a2b2b70245 100644 --- a/UI/EmuScreen.cpp +++ b/UI/EmuScreen.cpp @@ -485,13 +485,13 @@ void EmuScreen::update(InputState &input) { float delta_x = tiltInputCurve(normalized_input_x * 2.0 * (g_Config.iTiltSensitivityX)) ; //if the invert is enabled, invert the motion - if (g_Config.bInvertTiltX){ + if (g_Config.bInvertTiltX) { delta_x *= -1; } float delta_y = tiltInputCurve(normalized_input_y * 2.0 * (g_Config.iTiltSensitivityY)) ; - if (g_Config.bInvertTiltY){ + if (g_Config.bInvertTiltY) { delta_y *= -1; } diff --git a/UI/TiltAnalogSettingsScreen.cpp b/UI/TiltAnalogSettingsScreen.cpp index b21004bb66..532bd11300 100644 --- a/UI/TiltAnalogSettingsScreen.cpp +++ b/UI/TiltAnalogSettingsScreen.cpp @@ -5,7 +5,7 @@ TiltAnalogSettingsScreen::TiltAnalogSettingsScreen() : currentTiltX_(0), currentTiltY_(0) {}; -void TiltAnalogSettingsScreen::CreateViews(){ +void TiltAnalogSettingsScreen::CreateViews() { using namespace UI; I18NCategory *c = GetI18NCategory("Controls"); @@ -38,7 +38,7 @@ void TiltAnalogSettingsScreen::CreateViews(){ root_->Add(settings); }; -void TiltAnalogSettingsScreen::update(InputState &input){ +void TiltAnalogSettingsScreen::update(InputState &input) { UIScreen::update(input); //I'm not sure why y is x and x is y. i's probably because of the orientation //of the screen (the x and y are in portrait coordinates). once portrait and @@ -49,7 +49,7 @@ void TiltAnalogSettingsScreen::update(InputState &input){ }; -UI::EventReturn TiltAnalogSettingsScreen::OnBack(UI::EventParams &e){ +UI::EventReturn TiltAnalogSettingsScreen::OnBack(UI::EventParams &e) { if (PSP_IsInited()) { screenManager()->finishDialog(this, DR_CANCEL); } else { @@ -60,7 +60,7 @@ UI::EventReturn TiltAnalogSettingsScreen::OnBack(UI::EventParams &e){ }; -UI::EventReturn TiltAnalogSettingsScreen::OnCalibrate(UI::EventParams &e){ +UI::EventReturn TiltAnalogSettingsScreen::OnCalibrate(UI::EventParams &e) { g_Config.fTiltBaseX = currentTiltX_; g_Config.fTiltBaseY = currentTiltY_;