CSFML - C binding of the Simple and Fast Multimedia Library

CSFML
Functions
Touch.h File Reference
`#include <SFML/Window/Export.h>`
`#include <SFML/Window/Types.h>`
`#include <SFML/System/Vector2.h>`

Go to the source code of this file.

## Functions
CSFML_WINDOW_API sfBool | sfTouch_isDown (unsigned int finger)
| Check if a touch event is currently down. More...
CSFML_WINDOW_API sfVector2i | sfTouch_getPosition (unsigned int finger, const sfWindow *relativeTo)
| Get the current position of a touch in window coordinates. More...

## Function Documentation

## ◆ sfTouch_getPosition()

CSFML_WINDOW_API sfVector2i sfTouch_getPosition | ( | unsigned int | finger,
|  | const sfWindow * | relativeTo
| ) |  |

Get the current position of a touch in window coordinates.

This function returns the current touch position relative to the given window, or desktop if NULL is passed.

Parameters

  finger | Finger index
  relativeTo | Reference window

Returns
  Current position of finger, or undefined if it's not down

## ◆ sfTouch_isDown()

CSFML_WINDOW_API sfBool sfTouch_isDown | ( | unsigned int | finger | ) |

Check if a touch event is currently down.

Parameters

  finger | Finger index

Returns
  sfTrue if finger is currently touching the screen, sfFalse otherwise