diff --git a/include/SFML/Window/Touch.hpp b/include/SFML/Window/Touch.hpp index 61e6ba31..d8c4fcd1 100644 --- a/include/SFML/Window/Touch.hpp +++ b/include/SFML/Window/Touch.hpp @@ -105,11 +105,10 @@ public : /// and you always get the real state of the touches, even if they /// happen when your window is out of focus and no event is triggered. /// -/// The setPosition and getPosition functions can be used to change -/// or retrieve the current position of the mouse pointer. There are -/// two versions: one that operates in global coordinates (relative -/// to the desktop) and one that operates in window coordinates -/// (relative to a specific window). +/// The getPosition function can be used to retrieve the current +/// position of a touch. There are two versions: one that operates +/// in global coordinates (relative to the desktop) and one that +/// operates in window coordinates (relative to a specific window). /// /// Touches are identified by an index (the "finger"), so that in /// multi-touch events, individual touches can be tracked correctly. @@ -127,10 +126,10 @@ public : /// } /// /// // get global position of touch 1 -/// sf::Vector2i globalPos = sf::Touch::getPosition(4); +/// sf::Vector2i globalPos = sf::Touch::getPosition(1); /// /// // get position of touch 1 relative to a window -/// sf::Vector2i relativePos = sf::Touch::getPosition(4, window); +/// sf::Vector2i relativePos = sf::Touch::getPosition(1, window); /// \endcode /// /// \see sf::Joystick, sf::Keyboard, sf::Mouse