|
Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine. GitHub | Vesper Updates | Creator |
Base class for keyboard events. More...
#include <KeyEvent.h>
Public Member Functions | |
| int | GetKeyCode () const |
| Get the key code associated with the event. | |
| Public Member Functions inherited from Vesper::Event | |
| virtual | ~Event ()=default |
| virtual EventType | GetEventType () const =0 |
| Get the type of the event. | |
| virtual const char * | GetName () const =0 |
| Get the name of the event. | |
| virtual int | GetCategoryFlags () const =0 |
| Get the category flags of the event. | |
| virtual std::string | ToString () const |
| Convert the event to a string representation. | |
| bool | IsInCategory (EventCategory category) |
| Check if the event is in a specific category. | |
Protected Member Functions | |
| KeyEvent (int keycode) | |
| Construct a KeyEvent with the specified key code. | |
Protected Attributes | |
| int | m_KeyCode |
Additional Inherited Members | |
| Public Attributes inherited from Vesper::Event | |
| bool | Handled = false |
| Indicates whether the event has been handled. | |
Base class for keyboard events.
|
inlineprotected |
Construct a KeyEvent with the specified key code.
| keycode | The key code associated with the event. Restricted specific construction to derived classes. |
References m_KeyCode.
Referenced by Vesper::KeyPressedEvent::KeyPressedEvent(), Vesper::KeyReleasedEvent::KeyReleasedEvent(), and Vesper::KeyTypedEvent::KeyTypedEvent().
|
inline |
Get the key code associated with the event.
References m_KeyCode.
Referenced by Vesper::EditorLayer::OnKeyPressed().
|
protected |