diff options
author | Karroffel <therzog@mail.de> | 2017-03-15 23:19:58 +0100 |
---|---|---|
committer | Karroffel <therzog@mail.de> | 2017-03-15 23:19:58 +0100 |
commit | 8d63048c6df08da5f0f88b62b2868c6938c222b7 (patch) | |
tree | c9113e2139838b11d3040469104a153d1f45a4af /include/godot_cpp/core/InputEvent.hpp | |
parent | bce9ac109d63d67c3e7f0b25df8aa9d72e094d1b (diff) | |
download | redot-cpp-8d63048c6df08da5f0f88b62b2868c6938c222b7.tar.gz |
Windows compatibility
Diffstat (limited to 'include/godot_cpp/core/InputEvent.hpp')
-rw-r--r-- | include/godot_cpp/core/InputEvent.hpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/godot_cpp/core/InputEvent.hpp b/include/godot_cpp/core/InputEvent.hpp index ef67817..f4fb33d 100644 --- a/include/godot_cpp/core/InputEvent.hpp +++ b/include/godot_cpp/core/InputEvent.hpp @@ -1,6 +1,16 @@ #ifndef INPUTEVENT_H #define INPUTEVENT_H +#if defined(_WIN32) +# ifdef _GD_CPP_CORE_API_IMPL +# define GD_CPP_CORE_API __declspec(dllexport) +# else +# define GD_CPP_CORE_API __declspec(dllimport) +# endif +#else +# define GD_CPP_CORE_API +#endif + #include <cstdint> #include <memory.h> @@ -119,7 +129,7 @@ enum { * Input Modifier Status * for keyboard/mouse events. */ -struct InputModifierState { +struct GD_CPP_CORE_API InputModifierState { bool shift; bool alt; @@ -223,7 +233,7 @@ struct InputEventAction { class Transform2D; -struct InputEvent { +struct GD_CPP_CORE_API InputEvent { enum Type { NONE, |