I'm trying to get the x, y, and state of my mouse in SDL. I tried using the lines
int mstate, mx, my = 0;
mstate, mx, my = SDL_GetCursor().SDL_GetMouseState();
But it gives me the error
C:[path]\particletest2\main.cpp|107|error: request for member
SDL_GetMouseState' in
SDL_GetCursor()', which is of non-class type `SDL_Cursor*'|
Is there any way I can get this to work? It seems like a waste to create a SDL_cursor object when SDL_GetCursor() should be creating one to return for you.
Thank you in advance for any help or answers, and for taking the time to read this.