module SFML::Touch

Polling API for touchscreen input. Each finger is identified by an integer (0 = first contact, 1 = second, etc.). The same fingers also surface through the event loop as :touch_began, :touch_moved, :touch_ended events with finger: and position: fields.

if SFML::Touch.down?(0) pos = SFML::Touch.position(0, relative_to: window) … end

On desktop platforms without touchscreen hardware these always return false / [0, 0].