Elevate Engine 1
Loading...
Searching...
No Matches
Elevate::KeyEvent Class Reference

#include <KeyEvent.h>

Inheritance diagram for Elevate::KeyEvent:
Elevate::Event Elevate::KeyPressedEvent Elevate::KeyReleasedEvent Elevate::KeyTypedEvent

Public Member Functions

int GetKeyCode () const
 
- Public Member Functions inherited from Elevate::Event
virtual EventType GetEventType () const =0
 
virtual const char * GetName () const =0
 
virtual int GetCategoryFlags () const =0
 
virtual std::string ToString () const
 
bool IsInCategory (EventCategory category)
 

Protected Member Functions

 KeyEvent (int keycode)
 

Protected Attributes

int m_KeyCode
 
- Protected Attributes inherited from Elevate::Event
bool m_Handled = false
 

Additional Inherited Members

- Public Attributes inherited from Elevate::Event
bool Handled = false
 

Detailed Description

Definition at line 7 of file KeyEvent.h.

Constructor & Destructor Documentation

◆ KeyEvent()

Elevate::KeyEvent::KeyEvent ( int  keycode)
inlineprotected

Definition at line 14 of file KeyEvent.h.

15 : m_KeyCode(keycode) {}

Member Function Documentation

◆ GetKeyCode()

int Elevate::KeyEvent::GetKeyCode ( ) const
inline

Definition at line 10 of file KeyEvent.h.

10{ return m_KeyCode; }

Member Data Documentation

◆ m_KeyCode

int Elevate::KeyEvent::m_KeyCode
protected

Definition at line 17 of file KeyEvent.h.


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