pearkes / gethub

A utility for cloning and fetching your remote git repositories from GitHub.
MIT License
217 stars 266 forks source link

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

Open mahmoud31415 opened 4 years ago

mahmoud31415 commented 4 years ago

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

}