#include "controle.hh"

// void controle::controleMovable2d(mobile2d& movable){
//   if (sf::Keyboard::isKeyPressed(sf::Keyboard::Left)&& movable.limLeft() )
//     movable.moveLeft();
//   if (sf::Keyboard::isKeyPressed(sf::Keyboard::Right)&& movable.limRight()<windowWidth)
//     movable.moveRight();
//   if (sf::Keyboard::isKeyPressed(sf::Keyboard::Up)&& movable.limUp() > 0)
//     movable.moveUp();
//   if (sf::Keyboard::isKeyPressed(sf::Keyboard::Down) && movable.limDown() < windowHeight)
//     movable.moveDown();
// }
