gethub
gethub copied to clipboard
how the hell i can fix this sfml c++ touch
#include <SFML/Graphics.hpp>
#include
sf::RenderWindow window(sf::VideoMode (600,900),"w");
ofstream file("file.txt");
while(window.isOpen())
{
sf::Event event;
while(window.pollEvent(event))
{
switch(event.type)
{
case sf::Event::Closed:
window.close();
break;
case sf::Event::TouchBegan:
file<<"Touch working";
break;
}
}
window.clear();
window.display();
}
}