Search Results
See All Results
Home
Groups
Pages
Marketplace
See More
Groups
Pages
Marketplace
Blogs
Join
Sign In
Sign Up
Theme Switcher
Night Mode
GameDev.net
@GameDev.net
shared a link
2025-01-11 02:00:24
·
click and drag sprite
gamedev.net
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
·
86 Views
Please log in to like, share and comment!
Upgrade to Pro
Choose the Plan That's Right for You
Upgrade