Note: I'm wrather NEW to these forums, sorry if I post this in the wrong section/Don't post something right.
I'v been working with SDL a bit. Decided to do this before I head off to Digipen for a Pre-college Program. After following Lazyfoo's tuts, I decided to attempt a new way at making a "button". Anything clickable that would give me some sort of result on the screen. I want to use the SDL_GetMouseState to tell whenever the cursor is over the button/If a mouse button is pressed . I realize that all this does is Get the mouse state, but is there any way i'm able to output the mouse states, to trigger something that pops up only while the cursor is in a certain region on the screen/when a button is pressed in a certain area.
For example,
If I were to put the mouse near the top left corner, a box should pop up somewhere else.
I've been up for too long and need some sleep, so i'm very sorry if what i just wrote seems like a jumbled mess.