From 51b3e74607694f2984040970665876e8b4c904eb Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 28 Dec 2023 00:27:13 +0100 Subject: [PATCH] typo --- src/Ecran.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ecran.cpp b/src/Ecran.cpp index 6d93dba..baca7d8 100644 --- a/src/Ecran.cpp +++ b/src/Ecran.cpp @@ -11,7 +11,7 @@ Ecran::~Ecran() {} void Ecran::afficher( const std::function dessin, - const std::function onclick) const { + const std::function 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; } }