KarmaEngine
Game Engine for practical learning and research purposes
Loading...
Searching...
No Matches
Karma::MouseButtonEvent Class Reference

Base class for mouse button press and release events. More...

#include <MouseEvent.h>

Inheritance diagram for Karma::MouseButtonEvent:
Collaboration diagram for Karma::MouseButtonEvent:

Public Member Functions

int GetMouseButton () const
 Getter for mouse button.
 
- Public Member Functions inherited from Karma::Event
virtual EventType GetEventType () const =0
 Getter for event name (type)
 
virtual const char * GetName () const =0
 Getter for event type.
 
virtual int GetCategoryFlags () const =0
 Getter for category flags (enum EventCategory)
 
virtual std::string ToString () const
 String representation of the event.
 
bool IsInCategory (EventCategory category)
 Routine to see if the category of the Event is (or a part of) given category.
 
bool IsHandled () const
 Getter for the m_Handled.
 
EventGetObjPointer ()
 Getter for the pointer to the object.
 

Protected Member Functions

 MouseButtonEvent (int button)
 

Protected Attributes

int m_Button
 
- Protected Attributes inherited from Karma::Event
bool m_Handled = false
 

Detailed Description

Base class for mouse button press and release events.

Member Function Documentation

◆ GetMouseButton()

int Karma::MouseButtonEvent::GetMouseButton ( ) const
inline

Getter for mouse button.

Since
Karma 1.0.0

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