SFML community forums

Bindings - other languages => D => Topic started by: moechofe on August 17, 2010, 09:06:55 pm

Title: n00b how to GetMouse()
Post by: moechofe 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 :
Code: [Select]

if( event.Type == sfEvtMouseMoved )
{
sfInput* input = sfRenderWindow_GetInput(window);
int x = sfInput_GetMouseX(input);
}


Sorry for my english