mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-26 00:45:49 +00:00
some more indentation fixed
This commit is contained in:
parent
fce408ad81
commit
c7bb50ef00
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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_;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user