📜  如何在窗口 sfm 上获取鼠标位置; - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:45.359000             🧑  作者: Mango

代码示例1
sf::Vector2i position = sf::Mouse::getPosition(window);

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

position.x >> 0
position.y >> 0