Finally unified all of my events into one place.
This commit is contained in:
parent
6c34fea64a
commit
c618a4828f
30 changed files with 215 additions and 216 deletions
|
|
@ -34,9 +34,9 @@ int main(int, char*[]) {
|
|||
auto gui_ev = router.process_event(ev);
|
||||
auto mouse_pos = window.mapPixelToCoords(router.position);
|
||||
|
||||
if(gui_ev == gui::Event::QUIT) {
|
||||
if(gui_ev == game::Event::QUIT) {
|
||||
return 0;
|
||||
} else if(gui_ev == gui::Event::MOUSE_CLICK) {
|
||||
} else if(gui_ev == game::Event::MOUSE_CLICK) {
|
||||
main.mouse(mouse_pos.x, mouse_pos.y, guecs::NO_MODS);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue