Refactor the game event loop and add menus to the Linux build

Patch from @x-qq
Addresses #195
This commit is contained in:
2020-01-25 17:57:32 -05:00
parent 1fcbd8e922
commit 29ef8b9c1e
17 changed files with 600 additions and 155 deletions

View File

@@ -128,7 +128,7 @@ bool handle_startup_press(location the_point) {
}
void handle_splash_events() {
extern sf::Event event;
sf::Event event;
if(!mainPtr.pollEvent(event)) return;
if(event.type == sf::Event::GainedFocus || event.type == sf::Event::MouseMoved)
set_cursor(sword_curs);