| 6 | namespace ZEngine::Event { |
| 7 | |
| 8 | class KeyEvent : public CoreEvent { |
| 9 | public: |
| 10 | KeyEvent(ZENGINE_KEYCODE key) : m_keycode(key) {} |
| 11 | |
| 12 | ZENGINE_KEYCODE GetKeyCode() const { |
| 13 | return m_keycode; |
| 14 | } |
| 15 | |
| 16 | EVENT_CATEGORY(Keyboard | EventCategory::Input) |
| 17 | |
| 18 | protected: |
| 19 | ZENGINE_KEYCODE m_keycode; |
| 20 | }; |
| 21 | } // namespace ZEngine::Event |
nothing calls this directly
no outgoing calls
no test coverage detected