Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mahmoud31415 opened this issue Dec 31, 2019 · 0 comments
Open

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

mahmoud31415 opened this issue Dec 31, 2019 · 0 comments

Comments

@mahmoud31415
Copy link

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

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant