flower seed
This commit is contained in:
@@ -522,6 +522,7 @@ int inEditorLoop (char **tab2d, vect *dim_tab, vect *playerPos, vect *targets,
|
||||
if (event.type == SDL_MOUSEBUTTONDOWN) {
|
||||
if (event.button.button == SDL_BUTTON_LEFT) {
|
||||
// Lorsque le clic gauche est effectué
|
||||
playAudio(2);
|
||||
int click_x, click_y;
|
||||
SDL_GetMouseState(&click_x, &click_y); // Récupérer la position de la souris
|
||||
|
||||
@@ -548,6 +549,7 @@ int inEditorLoop (char **tab2d, vect *dim_tab, vect *playerPos, vect *targets,
|
||||
}
|
||||
if (event.button.button == SDL_BUTTON_RIGHT) {
|
||||
// Lorsque le clic gauche est effectué
|
||||
playAudio(2);
|
||||
int click_x, click_y;
|
||||
SDL_GetMouseState(&click_x, &click_y); // Récupérer la position de la souris
|
||||
|
||||
|
||||
Reference in New Issue
Block a user