1
D / n00b how to GetMouse()
« on: August 17, 2010, 09:06:55 pm »
Hi
I'm using the derelict port of the csfml.
While I want to get the mouse coordinates, I get a "Access Violation" error
This is my code :
Sorry for my english
I'm using the derelict port of the csfml.
While I want to get the mouse coordinates, I get a "Access Violation" error
This is my code :
Code: [Select]
if( event.Type == sfEvtMouseMoved )
{
sfInput* input = sfRenderWindow_GetInput(window);
int x = sfInput_GetMouseX(input);
}
Sorry for my english