@@ -12,13 +12,15 @@
#include <stdint.h>
+#include <SDL.h>
+
#include <Event.h>
class KeyPressedEvent : public Event
{
public:
- uint16_t keyCode;
- explicit KeyPressedEvent(uint16_t keyCode) : keyCode(keyCode) {};
+ SDL_Keycode keyCode;
+ explicit KeyPressedEvent(SDL_Keycode keyCode) : keyCode(keyCode) {};
};
#endif /* GAMEENGINE_SOURCE_INCLUDE_EVENTS_KEYPRESSED_H */