This is going to require a major rewrite of every component of this program. Going to revert back to the linear game loop for now

This commit is contained in:
2017-10-05 22:51:02 -07:00
parent 5fcf1c0e44
commit 2d2a854f0f
6 changed files with 183 additions and 183 deletions

View File

@@ -55,13 +55,13 @@ public:
if (event.get()->type == vr::Event::Closed) {
window_ref->close();
} else if (event.get()->type == vr::Event::KeyPressed) {
vr::KeyPressed *key_event = static_cast<vr::KeyPressed*>(event.get());
if (key_event->code == sf::Keyboard::Escape) {
window_ref->close();
}
} else if (event.get()->type == vr::Event::KeyPressed) {
vr::KeyPressed *key_event = static_cast<vr::KeyPressed*>(event.get());
if (key_event->code == sf::Keyboard::Escape) {
window_ref->close();
}
}
};