|
Muto 0.0.1
|
Event for registering mouse button presses. More...
#include <MouseEvent.h>
Public Member Functions | |
| MouseButtonPressedEvent (int button) | |
| Construct a MouseButtonPressedEvent with the specified button. | |
| std::string | ToString () const override |
| Convert the event to a string representation. | |
Public Member Functions inherited from Muto::MouseButtonEvent | |
| int | GetMouseButton () const |
| Get the mouse button associated with the event. | |
Public Member Functions inherited from Muto::Event | |
| virtual int | GetCategoryFlags () const =0 |
| Get the category flags of the event. | |
| virtual EventType | GetEventType () const =0 |
| Get the type of the event. | |
| virtual const char * | GetName () const =0 |
| Get the name of the event. | |
| bool | IsInCategory (EventCategory category) |
| Check if the event is in a specific category. | |
| virtual | ~Event ()=default |
Additional Inherited Members | |
Public Attributes inherited from Muto::Event | |
| bool | Handled = false |
| Indicates whether the event has been handled. | |
Protected Member Functions inherited from Muto::MouseButtonEvent | |
| MouseButtonEvent (int button) | |
| Construct a MouseButtonEvent with the specified button. | |
Protected Attributes inherited from Muto::MouseButtonEvent | |
| int | m_Button |
Event for registering mouse button presses.
|
inline |
Construct a MouseButtonPressedEvent with the specified button.
| button | The mouse button associated with the event. |
References Muto::MouseButtonEvent::MouseButtonEvent().
|
inlineoverridevirtual |
Convert the event to a string representation.
Reimplemented from Muto::Event.
References Muto::MouseButtonEvent::GetMouseButton().