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

Event describing a gamepad button pressed. More...

#include <GamepadButtonPressedEvent.hpp>

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

Public Member Functions

constexpr GamepadButtonPressedEvent (size_t pId, Gamepad::Button pButton) noexcept
 Construct a new GamepadButtonPressedEvent 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 pressed.

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 GamepadButtonPressedEvent.hpp.

Constructor & Destructor Documentation

◆ GamepadButtonPressedEvent()

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

Construct a new GamepadButtonPressedEvent 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 GamepadButtonPressedEvent.hpp.

36 : GamepadButtonEvent(pId, pButton, true)
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: