Reasignados los controles para ordenador, mando y consola

This commit is contained in:
2023-02-12 18:50:40 +01:00
parent ca99857b5b
commit cbb5d54250
8 changed files with 154 additions and 140 deletions

View File

@@ -95,25 +95,25 @@ void Player::setInput(Uint8 input)
{
switch (input)
{
case INPUT_LEFT:
case input_left:
velX = -baseSpeed;
setWalkingStatus(PLAYER_STATUS_WALKING_LEFT);
break;
case INPUT_RIGHT:
case input_right:
velX = baseSpeed;
setWalkingStatus(PLAYER_STATUS_WALKING_RIGHT);
break;
case INPUT_BUTTON_2:
case input_fire_center:
setFiringStatus(PLAYER_STATUS_FIRING_UP);
break;
case INPUT_BUTTON_1:
case input_fire_left:
setFiringStatus(PLAYER_STATUS_FIRING_LEFT);
break;
case INPUT_BUTTON_3:
case input_fire_right:
setFiringStatus(PLAYER_STATUS_FIRING_RIGHT);
break;