2#ifdef StevEngine_INPUTS
3#include "main/EventSystem.hpp"
4#include "main/EngineEvents.hpp"
5#include "utilities/Vector2.hpp"
71 #ifdef StevEngine_SHOW_WINDOW
78 std::unordered_map<SDL_Keycode, bool> inputMap;
79 std::unordered_map<Uint8, bool> mouseInputMap;
82 double mouseWheelDelta;
84 void HandleSDLEvent(
const SDLEvent event);
85 void Update(
double deltaTime);
86 void ResetMouseDelta();
104 const std::string
GetEventType()
const override {
return GetStaticEventType(); };
105 static const std::string GetStaticEventType() {
return "InputKeyDownEvent"; }
119 const std::string
GetEventType()
const override {
return GetStaticEventType(); };
120 static const std::string GetStaticEventType() {
return "InputKeyUpEvent"; }
137 const std::string
GetEventType()
const override {
return GetStaticEventType(); };
138 static const std::string GetStaticEventType() {
return "InputMouseMoveEvent"; }
153 const std::string
GetEventType()
const override {
return GetStaticEventType(); };
154 static const std::string GetStaticEventType() {
return "InputMouseWheelEvent"; }
168 const std::string
GetEventType()
const override {
return GetStaticEventType(); };
169 static const std::string GetStaticEventType() {
return "InputMouseButtonDownEvent"; }
183 const std::string
GetEventType()
const override {
return GetStaticEventType(); };
184 static const std::string GetStaticEventType() {
return "InputMouseButtonUpEvent"; }
Manages event subscriptions and publishing.
Definition EventSystem.hpp:74
Base class for all engine events.
Definition EventSystem.hpp:12
Event containing raw SDL event.
Definition EngineEvents.hpp:67
2D vector class
Definition Vector2.hpp:13