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:
@@ -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();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user