Fixed build on linux
This commit is contained in:
parent
baa6fc0c8a
commit
ff799185fb
2 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <kaguya\kaguya.hpp>
|
#include <kaguya/kaguya.hpp>
|
||||||
#include "Renderer.h"
|
#include "Renderer.h"
|
||||||
#include "imgui.h"
|
#include "imgui.h"
|
||||||
#include "Input.h"
|
#include "Input.h"
|
||||||
|
|
|
@ -53,20 +53,20 @@ struct InputEvent {
|
||||||
bool pressed;
|
bool pressed;
|
||||||
|
|
||||||
union {
|
union {
|
||||||
struct MouseMoveEvent { // mouse click;
|
struct { // mouse click;
|
||||||
int x;
|
int x;
|
||||||
int y;
|
int y;
|
||||||
int dx;
|
int dx;
|
||||||
int dy;
|
int dy;
|
||||||
} mouse_move_event;
|
} mouse_move_event;
|
||||||
|
|
||||||
struct MouseClickEvent { // mouse click;
|
struct { // mouse click;
|
||||||
int x;
|
int x;
|
||||||
int y;
|
int y;
|
||||||
int button;
|
int button;
|
||||||
} mouse_click_event;
|
} mouse_click_event;
|
||||||
|
|
||||||
struct KeyPressEvent { // key
|
struct { // key
|
||||||
SDL_Keycode key;
|
SDL_Keycode key;
|
||||||
SDL_Keymod mod;
|
SDL_Keymod mod;
|
||||||
bool echo;
|
bool echo;
|
||||||
|
|
Loading…
Reference in a new issue