Fixed erroneous comments in the sf::Touch class documentation

This commit is contained in:
Laurent Gomila 2014-04-04 23:00:38 +02:00 committed by Jonathan De Wachter
parent 2d682d324f
commit ffd4b71722

View File

@ -105,11 +105,10 @@ public :
/// and you always get the real state of the touches, even if they /// 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. /// happen when your window is out of focus and no event is triggered.
/// ///
/// The setPosition and getPosition functions can be used to change /// The getPosition function can be used to retrieve the current
/// or retrieve the current position of the mouse pointer. There are /// position of a touch. There are two versions: one that operates
/// two versions: one that operates in global coordinates (relative /// in global coordinates (relative to the desktop) and one that
/// to the desktop) and one that operates in window coordinates /// operates in window coordinates (relative to a specific window).
/// (relative to a specific window).
/// ///
/// Touches are identified by an index (the "finger"), so that in /// Touches are identified by an index (the "finger"), so that in
/// multi-touch events, individual touches can be tracked correctly. /// multi-touch events, individual touches can be tracked correctly.
@ -127,10 +126,10 @@ public :
/// } /// }
/// ///
/// // get global position of touch 1 /// // 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 /// // 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 /// \endcode
/// ///
/// \see sf::Joystick, sf::Keyboard, sf::Mouse /// \see sf::Joystick, sf::Keyboard, sf::Mouse