luna engine
software engine
Loading...
Searching...
No Matches
luna::keyPressedEvent Class Reference

#include <keyEvent.h>

Inheritance diagram for luna::keyPressedEvent:
Collaboration diagram for luna::keyPressedEvent:

Public Member Functions

 keyPressedEvent (const keyCode keyCode, bool isRepeat=false)
 
bool isRepeat () const
 
std::string toString () const override
 
- Public Member Functions inherited from luna::keyEvent
keyCode getkeyCode () const
 
- Public Member Functions inherited from luna::Event
virtual ~Event ()=default
 
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)
 

Private Attributes

bool m_IsRepeat
 

Additional Inherited Members

- Public Attributes inherited from luna::Event
bool Handled = false
 
- Protected Member Functions inherited from luna::keyEvent
 keyEvent (const keyCode keyCode)
 
- Protected Attributes inherited from luna::keyEvent
keyCode m_keyCode
 

Constructor & Destructor Documentation

◆ keyPressedEvent()

luna::keyPressedEvent::keyPressedEvent ( const keyCode  keyCode,
bool  isRepeat = false 
)
inline

Member Function Documentation

◆ isRepeat()

bool luna::keyPressedEvent::isRepeat ( ) const
inline

◆ toString()

std::string luna::keyPressedEvent::toString ( ) const
inlineoverridevirtual

Reimplemented from luna::Event.

Member Data Documentation

◆ m_IsRepeat

bool luna::keyPressedEvent::m_IsRepeat
private

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