Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: n00b how to GetMouse()  (Read 6271 times)

0 Members and 1 Guest are viewing this topic.

moechofe

  • Newbie
  • *
  • Posts: 4
    • View Profile
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 :
Code: [Select]

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


Sorry for my english