i am currently trying to get the player to follow the mouse in SDL, at the moment i am trying to change from using keys to move a player to the mouse but i'm not sure what i need to do to get it to use the mouse instead of the keys...here is what the code looks like and what i would like it to do,...
instead of SDLK_UP etc... i want to use a function called GetMousePos()...which moves the player in the direction and place the mouse is currently hovering over....
does anyone know anywhere were i could find some tutorials on how to use the mouse in sdl..or any advice as to what i would need to be able to implement such features?