Just™ Game Engine
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
jng::KeyEvent Class Reference

#include <key_events.hpp>

Inheritance diagram for jng::KeyEvent:
jng::Event jng::KeyPressEvent jng::KeyReleaseEvent

Public Member Functions

Key::Code getKeyCode () const
 
- Public Member Functions inherited from jng::Event
virtual ~Event ()=default
 
virtual EventType getType () const =0
 
virtual const char * getName () const =0
 
virtual std::string to_string () const
 
bool isHandled () const
 

Protected Member Functions

 KeyEvent (Key::Code keyCode)
 

Protected Attributes

Key::Code m_keyCode
 
- Protected Attributes inherited from jng::Event
bool m_handled = false
 

Constructor & Destructor Documentation

◆ KeyEvent()

jng::KeyEvent::KeyEvent ( Key::Code  keyCode)
inlineexplicitprotected

Member Function Documentation

◆ getKeyCode()

Key::Code jng::KeyEvent::getKeyCode ( ) const
inline

Member Data Documentation

◆ m_keyCode

Key::Code jng::KeyEvent::m_keyCode
protected

The documentation for this class was generated from the following file: