Touch#
Functions
-
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
-
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