From ff799185fba4731d70dd72708fc62ac77e7fdc32 Mon Sep 17 00:00:00 2001 From: Adrian Hedqvist Date: Wed, 18 Oct 2017 14:05:14 +0200 Subject: [PATCH] Fixed build on linux --- src/App.cpp | 2 +- src/Input.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App.cpp b/src/App.cpp index af19221..00294ca 100644 --- a/src/App.cpp +++ b/src/App.cpp @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include "Renderer.h" #include "imgui.h" #include "Input.h" diff --git a/src/Input.h b/src/Input.h index 709182b..044d743 100644 --- a/src/Input.h +++ b/src/Input.h @@ -53,20 +53,20 @@ struct InputEvent { bool pressed; union { - struct MouseMoveEvent { // mouse click; + struct { // mouse click; int x; int y; int dx; int dy; } mouse_move_event; - struct MouseClickEvent { // mouse click; + struct { // mouse click; int x; int y; int button; } mouse_click_event; - struct KeyPressEvent { // key + struct { // key SDL_Keycode key; SDL_Keymod mod; bool echo;