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

Event describing a gamepad button released. More...

#include <GamepadButtonReleasedEvent.hpp>

Inheritance diagram for ecstasy::integration::event::GamepadButtonReleasedEvent:
Collaboration diagram for ecstasy::integration::event::GamepadButtonReleasedEvent:

Public Member Functions

constexpr GamepadButtonReleasedEvent (size_t pId, Gamepad::Button pButton) noexcept
 Construct a new GamepadButtonReleasedEvent object.
 
- Public Member Functions inherited from ecstasy::integration::event::GamepadButtonEvent
constexpr GamepadButtonEvent (size_t pId, Gamepad::Button pButton, bool pPressed) noexcept
 Construct a new GamepadButtonEvent object.
 

Additional Inherited Members

- Public Attributes inherited from ecstasy::integration::event::GamepadButtonEvent
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 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 GamepadButtonReleasedEvent.hpp.

Constructor & Destructor Documentation

◆ GamepadButtonReleasedEvent()

constexpr ecstasy::integration::event::GamepadButtonReleasedEvent::GamepadButtonReleasedEvent ( size_t  pId,
Gamepad::Button  pButton 
)
inlineconstexprnoexcept

Construct a new GamepadButtonReleasedEvent object.

Parameters
[in]pIdTargeted gamepad id.
[in]pButtonTargeted button.
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 35 of file GamepadButtonReleasedEvent.hpp.

36 : GamepadButtonEvent(pId, pButton, false)
37 {
38 }
constexpr GamepadButtonEvent(size_t pId, Gamepad::Button pButton, bool pPressed) noexcept
Construct a new GamepadButtonEvent object.

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