GAMEDEV.NET
click and drag sprite
All I want to do is click and drag a spriteelse if (event.type == SDL_MOUSEBUTTONDOWN||SDL_MOUSEMOTION) {if (event.button.button == SDL_BUTTON_LEFT) {int mouseX, mouseY;SDL_GetMouseState(&mouseX, &mouseY);cout << mouseX << " " << mouseY << endl;if (mouseX > 522 && mouseX < 567 && mouseY>394 && mouseY < 439){SDL_Rect rect_two;rect_two.x
0 Comments 0 Shares 39 Views