typo
This commit is contained in:
parent
33254abc33
commit
51b3e74607
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ Ecran::~Ecran() {}
|
|||
|
||||
void Ecran::afficher(
|
||||
const std::function<void()> dessin,
|
||||
const std::function<void(const int, const int)> onclick) const {
|
||||
const std::function<void(const int, const int)> onClick) const {
|
||||
// Flag qui track si le clic gauche est pressé
|
||||
bool mouseButtonPressed = false;
|
||||
|
||||
|
@ -32,7 +32,7 @@ void Ecran::afficher(
|
|||
if (!mouseButtonPressed) {
|
||||
if (event.type == sf::Event::MouseButtonPressed &&
|
||||
event.mouseButton.button == sf::Mouse::Left) {
|
||||
onclick(event.mouseButton.x, event.mouseButton.y);
|
||||
onClick(event.mouseButton.x, event.mouseButton.y);
|
||||
mouseButtonPressed = true;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue