@ -478,10 +478,7 @@ void AiL::HandleUserInput(float fElapsedTime){
animationSpd = controllerAmt ;
animationSpd = controllerAmt ;
}
}
moveAmt * = controllerAmt ;
moveAmt * = controllerAmt ;
} else
} else animationSpd = 1.f ;
if ( ! Input : : UsingGamepad ( ) ) {
animationSpd = 1.f ;
}
player - > SetX ( player - > GetX ( ) + fElapsedTime * moveAmt * player - > GetMoveSpdMult ( ) ) ;
player - > SetX ( player - > GetX ( ) + fElapsedTime * moveAmt * player - > GetMoveSpdMult ( ) ) ;
player - > movementVelocity . x = moveAmt * fElapsedTime * player - > GetMoveSpdMult ( ) ;
player - > movementVelocity . x = moveAmt * fElapsedTime * player - > GetMoveSpdMult ( ) ;
if ( staircaseDirection = = " RIGHT " ) {
if ( staircaseDirection = = " RIGHT " ) {
@ -508,10 +505,7 @@ void AiL::HandleUserInput(float fElapsedTime){
animationSpd = controllerAmt ;
animationSpd = controllerAmt ;
}
}
moveAmt * = abs ( KEY_SCROLLHORZ_L . Analog ( ) ) ;
moveAmt * = abs ( KEY_SCROLLHORZ_L . Analog ( ) ) ;
} else
} else animationSpd = 1.f ;
if ( ! Input : : UsingGamepad ( ) ) {
animationSpd = 1.f ;
}
player - > SetX ( player - > GetX ( ) - fElapsedTime * moveAmt * player - > GetMoveSpdMult ( ) ) ;
player - > SetX ( player - > GetX ( ) - fElapsedTime * moveAmt * player - > GetMoveSpdMult ( ) ) ;
player - > movementVelocity . x = - moveAmt * fElapsedTime * player - > GetMoveSpdMult ( ) ;
player - > movementVelocity . x = - moveAmt * fElapsedTime * player - > GetMoveSpdMult ( ) ;
if ( staircaseDirection = = " RIGHT " ) {
if ( staircaseDirection = = " RIGHT " ) {
@ -537,10 +531,7 @@ void AiL::HandleUserInput(float fElapsedTime){
animationSpd = controllerAmt ;
animationSpd = controllerAmt ;
}
}
moveAmt * = abs ( KEY_SCROLLVERT_L . Analog ( ) ) ;
moveAmt * = abs ( KEY_SCROLLVERT_L . Analog ( ) ) ;
} else
} else animationSpd = 1.f ;
if ( ! Input : : UsingGamepad ( ) ) {
animationSpd = 1.f ;
}
player - > SetY ( player - > GetY ( ) - fElapsedTime * moveAmt * player - > GetMoveSpdMult ( ) ) ;
player - > SetY ( player - > GetY ( ) - fElapsedTime * moveAmt * player - > GetMoveSpdMult ( ) ) ;
player - > movementVelocity . y = - moveAmt * fElapsedTime * player - > GetMoveSpdMult ( ) ;
player - > movementVelocity . y = - moveAmt * fElapsedTime * player - > GetMoveSpdMult ( ) ;
@ -558,10 +549,7 @@ void AiL::HandleUserInput(float fElapsedTime){
animationSpd = controllerAmt ;
animationSpd = controllerAmt ;
}
}
moveAmt * = abs ( KEY_SCROLLVERT_L . Analog ( ) ) ;
moveAmt * = abs ( KEY_SCROLLVERT_L . Analog ( ) ) ;
} else
} else animationSpd = 1.f ;
if ( ! Input : : UsingGamepad ( ) ) {
animationSpd = 1.f ;
}
player - > SetY ( player - > GetY ( ) + fElapsedTime * moveAmt * player - > GetMoveSpdMult ( ) ) ;
player - > SetY ( player - > GetY ( ) + fElapsedTime * moveAmt * player - > GetMoveSpdMult ( ) ) ;
player - > movementVelocity . y = moveAmt * fElapsedTime * player - > GetMoveSpdMult ( ) ;
player - > movementVelocity . y = moveAmt * fElapsedTime * player - > GetMoveSpdMult ( ) ;