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

Event describing a key released. More...

#include <KeyReleasedEvent.hpp>

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

Public Member Functions

constexpr KeyReleasedEvent (Keyboard::Key pKey) noexcept
 Construct a new KeyReleasedEvent object.
 
- Public Member Functions inherited from ecstasy::integration::event::KeyEvent
constexpr KeyEvent (Keyboard::Key pKey, bool pPressed=true) noexcept
 Construct a new KeyEvent object.
 

Additional Inherited Members

- Public Attributes inherited from ecstasy::integration::event::KeyEvent
Keyboard::Key key
 Target key.
 
bool pressed
 Whether the key is pressed (down) or not (up).
 

Detailed Description

Event describing a key 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 KeyReleasedEvent.hpp.

Constructor & Destructor Documentation

◆ KeyReleasedEvent()

constexpr ecstasy::integration::event::KeyReleasedEvent::KeyReleasedEvent ( Keyboard::Key  pKey)
inlineconstexprnoexcept

Construct a new KeyReleasedEvent object.

Parameters
[in]pKeyTargeted key.
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 34 of file KeyReleasedEvent.hpp.

34 : KeyEvent(pKey, false)
35 {
36 }
constexpr KeyEvent(Keyboard::Key pKey, bool pPressed=true) noexcept
Construct a new KeyEvent object.
Definition KeyEvent.hpp:40

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