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

Event describing a gamepad button pressed or released. More...

#include <GamepadButtonEvent.hpp>

Inheritance diagram for ecstasy::integration::event::GamepadButtonEvent:

Public Member Functions

constexpr GamepadButtonEvent (size_t pId, Gamepad::Button pButton, bool pPressed) noexcept
 Construct a new GamepadButtonEvent object.
 

Public Attributes

size_t id
 Target gamepad id.
 
Gamepad::Button button
 Target button.
 
bool pressed
 Whether the button is pressed (down) or not (up).
 

Detailed Description

Event describing a gamepad button pressed or released.

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-17)

Definition at line 25 of file GamepadButtonEvent.hpp.

Constructor & Destructor Documentation

◆ GamepadButtonEvent()

constexpr ecstasy::integration::event::GamepadButtonEvent::GamepadButtonEvent ( size_t  pId,
Gamepad::Button  pButton,
bool  pPressed 
)
inlineconstexprnoexcept

Construct a new GamepadButtonEvent object.

Parameters
[in]pIdTargeted gamepad id.
[in]pButtonTargeted button.
[in]pPressedWhether the button is pressed or not.
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-06)

Definition at line 43 of file GamepadButtonEvent.hpp.

44 : id(pId), button(pButton), pressed(pPressed)
45 {
46 }
bool pressed
Whether the button is pressed (down) or not (up).

Member Data Documentation

◆ button

Gamepad::Button ecstasy::integration::event::GamepadButtonEvent::button

Target button.

Definition at line 29 of file GamepadButtonEvent.hpp.

◆ id

size_t ecstasy::integration::event::GamepadButtonEvent::id

Target gamepad id.

Definition at line 27 of file GamepadButtonEvent.hpp.

◆ pressed

bool ecstasy::integration::event::GamepadButtonEvent::pressed

Whether the button is pressed (down) or not (up).

Definition at line 31 of file GamepadButtonEvent.hpp.


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