eliminada repetició en la tecla down
This commit is contained in:
@@ -110,7 +110,10 @@ void Player::handleInput() {
|
||||
const bool JUMP_PRESSED = Input::get()->checkAction(InputAction::JUMP);
|
||||
wanna_jump_ = JUMP_PRESSED && !jump_held_;
|
||||
jump_held_ = JUMP_PRESSED;
|
||||
wanna_down_ = Input::get()->checkAction(InputAction::DOWN);
|
||||
|
||||
const bool DOWN_PRESSED = Input::get()->checkAction(InputAction::DOWN);
|
||||
wanna_down_ = DOWN_PRESSED && !down_held_;
|
||||
down_held_ = DOWN_PRESSED;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
|
||||
Reference in New Issue
Block a user