SpiecsEngine
 
Loading...
Searching...
No Matches

◆ ToString()

virtual std::string Spices::KeyPressedEvent::ToString ( ) const
inlineoverridevirtual

Serialize this Event Class to string.

Returns
Returns Serialized string.

Reimplemented from Spices::Event.

Definition at line 85 of file KeyEvent.h.

86 {
87 std::stringstream ss;
88 ss << "KeyPressedEvent: " << m_KeyCode << " (" << m_RepeatCount << " repeats)";
89
90 return ss.str();
91 }
int m_KeyCode
Input KeyCode.
Definition KeyEvent.h:50
int m_RepeatCount
Specific this Class Type with KeyPressed.
Definition KeyEvent.h:103

References Spices::KeyEvent::m_KeyCode, and m_RepeatCount.