123456789101112131415161718192021222324 |
- /*
- * 2D Game Engine
- * KeyPressed.h:
- * Based on pikuma.com 2D game engine in C++ and Lua course
- * Copyright (c) 2021 986-Studio. All rights reserved.
- *
- * Created by Manoël Trapier on 16/02/2021.
- */
- #ifndef GAMEENGINE_SOURCE_INCLUDE_EVENTS_KEYPRESSED_H
- #define GAMEENGINE_SOURCE_INCLUDE_EVENTS_KEYPRESSED_H
- #include <stdint.h>
- #include <Event.h>
- class KeyPressedEvent : public Event
- {
- public:
- uint16_t keyCode;
- explicit KeyPressedEvent(uint16_t keyCode) : keyCode(keyCode) {};
- };
- #endif /* GAMEENGINE_SOURCE_INCLUDE_EVENTS_KEYPRESSED_H */
|