MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / KeyEvent

Class KeyEvent

ZEngine/include/ZEngine/Event/KeyEvent.h:8–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected