Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to get mouse position on window sfm;

sf::Vector2i position = sf::Mouse::getPosition(window);

// position will contain the x and y of your mouse

position.x >> 0
position.y >> 0
 
PREVIOUS NEXT
Tagged: #mouse #position #window
ADD COMMENT
Topic
Name
4+7 =