mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fixed erroneous comments in the sf::Touch class documentation
This commit is contained in:
parent
2d682d324f
commit
ffd4b71722
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user