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

#include <KeyEvent.h>

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

Public Member Functions

 KeyTypedEvent (int keycode)
 
std::string ToString () const override
 
- Public Member Functions inherited from Elevate::KeyEvent
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
 
bool IsInCategory (EventCategory category)
 

Additional Inherited Members

- Public Attributes inherited from Elevate::Event
bool Handled = false
 
- Protected Member Functions inherited from Elevate::KeyEvent
 KeyEvent (int keycode)
 
- Protected Attributes inherited from Elevate::KeyEvent
int m_KeyCode
 
- Protected Attributes inherited from Elevate::Event
bool m_Handled = false
 

Detailed Description

Definition at line 60 of file KeyEvent.h.

Constructor & Destructor Documentation

◆ KeyTypedEvent()

Elevate::KeyTypedEvent::KeyTypedEvent ( int  keycode)
inline

Definition at line 63 of file KeyEvent.h.

64 : KeyEvent(keycode) {}
KeyEvent(int keycode)
Definition KeyEvent.h:14

Member Function Documentation

◆ ToString()

std::string Elevate::KeyTypedEvent::ToString ( ) const
inlineoverridevirtual

Reimplemented from Elevate::Event.

Definition at line 66 of file KeyEvent.h.

67 {
68 std::stringstream ss;
69 ss << "KeyTypedEvent: " << m_KeyCode;
70 return ss.str();
71 }

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