ECSTASY
All in the name
Loading...
Searching...
No Matches
ecstasy::integration::event::GamepadConnectedEvent Struct Reference

Event describing a gamepad connection or disconnection. More...

#include <GamepadConnectedEvent.hpp>

Collaboration diagram for ecstasy::integration::event::GamepadConnectedEvent:

Public Member Functions

constexpr GamepadConnectedEvent (std::size_t pId, bool pConnected) noexcept
 Construct a new GamepadConnectedEvent object.
 

Public Attributes

std::size_t id
 Target gamepad id.
 
bool connected
 Whether the gamepad has been connected or disconnected.
 

Detailed Description

Event describing a gamepad connection or disconnection.

Author
Andréas Leroux (andre.nosp@m.as.l.nosp@m.eroux.nosp@m.@epi.nosp@m.tech..nosp@m.eu)
Since
1.0.0 (2022-11-18)

Definition at line 25 of file GamepadConnectedEvent.hpp.

Constructor & Destructor Documentation

◆ GamepadConnectedEvent()

constexpr ecstasy::integration::event::GamepadConnectedEvent::GamepadConnectedEvent ( std::size_t  pId,
bool  pConnected 
)
inlineconstexprnoexcept

Construct a new GamepadConnectedEvent object.

Parameters
[in]pIdTarget gamepad id.
[in]pConnectedWhether the gamepad has been connected or disconnected.
Author
Andréas Leroux (andre.nosp@m.as.l.nosp@m.eroux.nosp@m.@epi.nosp@m.tech..nosp@m.eu)
Since
1.0.0 (2022-11-18)

Definition at line 40 of file GamepadConnectedEvent.hpp.

40 : id(pId), connected(pConnected)
41 {
42 }
bool connected
Whether the gamepad has been connected or disconnected.

Member Data Documentation

◆ connected

bool ecstasy::integration::event::GamepadConnectedEvent::connected

Whether the gamepad has been connected or disconnected.

Definition at line 29 of file GamepadConnectedEvent.hpp.

◆ id

std::size_t ecstasy::integration::event::GamepadConnectedEvent::id

Target gamepad id.

Definition at line 27 of file GamepadConnectedEvent.hpp.


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