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

Event triggered when the constroller device is connected. More...

#include <ControllerDeviceEvent.h>

Inheritance diagram for Karma::ControllerDeviceConnectedEvent:
Collaboration diagram for Karma::ControllerDeviceConnectedEvent:

Public Member Functions

 ControllerDeviceConnectedEvent (int cID, int status)
 A constructor.
 
std::string ToString () const override
 String representation of the event.
 
- 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)
 
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.
 

Additional Inherited Members

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

Detailed Description

Event triggered when the constroller device is connected.

Constructor & Destructor Documentation

◆ ControllerDeviceConnectedEvent()

Karma::ControllerDeviceConnectedEvent::ControllerDeviceConnectedEvent ( int cID,
int status )
inline

A constructor.

Parameters
cIDThe controller device ID, defined in GLFW
statusCurrent status of the controller device, defined in GLFW #define GLFW_CONNECTED 0x00040001 #define GLFW_DISCONNECTED 0x00040002
See also
https://www.glfw.org/docs/3.3/group__joysticks.html
Since
Karma 1.0.0

Member Function Documentation

◆ ToString()

std::string Karma::ControllerDeviceConnectedEvent::ToString ( ) const
inlineoverridevirtual

String representation of the event.

Reimplemented from Karma::Event.


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