Browse Source

Lesson 17.8

Godzil 3 years ago
parent
commit
a85242b90d
1 changed files with 4 additions and 2 deletions
  1. 4 2
      source/include/Events/KeyPressed.h

+ 4 - 2
source/include/Events/KeyPressed.h

@@ -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 */