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

Event describing a gamepad axis value change. More...

#include <GamepadAxisEvent.hpp>

Public Member Functions

constexpr GamepadAxisEvent (size_t pId, Gamepad::Axis pAxis, float pValue) noexcept
 Construct a new GamepadAxisEvent object.
 

Public Attributes

size_t id
 Target gamepad id.
 
Gamepad::Axis axis
 Target axis.
 
float value
 New axis value.
 

Detailed Description

Event describing a gamepad axis value change.

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

Constructor & Destructor Documentation

◆ GamepadAxisEvent()

constexpr ecstasy::integration::event::GamepadAxisEvent::GamepadAxisEvent ( size_t  pId,
Gamepad::Axis  pAxis,
float  pValue 
)
inlineconstexprnoexcept

Construct a new GamepadAxisEvent object.

Parameters
[in]pIdTarget gamepad id.
[in]pAxisTarget axis.
[in]pValuenew axis value.
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 43 of file GamepadAxisEvent.hpp.

44 : id(pId), axis(pAxis), value(pValue)
45 {
46 }

Member Data Documentation

◆ axis

Gamepad::Axis ecstasy::integration::event::GamepadAxisEvent::axis

Target axis.

Definition at line 29 of file GamepadAxisEvent.hpp.

◆ id

size_t ecstasy::integration::event::GamepadAxisEvent::id

Target gamepad id.

Definition at line 27 of file GamepadAxisEvent.hpp.

◆ value

float ecstasy::integration::event::GamepadAxisEvent::value

New axis value.

Definition at line 31 of file GamepadAxisEvent.hpp.


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