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;