gethub icon indicating copy to clipboard operation
gethub copied to clipboard

how the hell i can fix this sfml c++ touch

Open mahmoud31415 opened this issue 5 years ago • 0 comments

#include <SFML/Graphics.hpp> #include #include using namespace std; int main() {

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();
}

}

mahmoud31415 avatar Dec 31 '19 01:12 mahmoud31415