ECSTASY
All in the name
Loading...
Searching...
No Matches
GamepadAxisEvent.hpp
Go to the documentation of this file.
1
11
12#ifndef ECSTASY_INTEGRATIONS_EVENT_EVENTS_GAMEPADAXISEVENT_HPP_
13#define ECSTASY_INTEGRATIONS_EVENT_EVENTS_GAMEPADAXISEVENT_HPP_
14
16
18{
27 size_t id;
31 float value;
32
43 constexpr GamepadAxisEvent(size_t pId, Gamepad::Axis pAxis, float pValue) noexcept
44 : id(pId), axis(pAxis), value(pValue)
45 {
46 }
47 };
48} // namespace ecstasy::integration::event
49
50#endif /* !ECSTASY_INTEGRATIONS_EVENT_EVENTS_GAMEPADAXISEVENT_HPP_ */
Axis
Gamepad axis, associated value must be in range [-1, 1].
Definition Gamepad.hpp:66
Event integration.
Definition Event.hpp:25
Event describing a gamepad axis value change.
constexpr GamepadAxisEvent(size_t pId, Gamepad::Axis pAxis, float pValue) noexcept
Construct a new GamepadAxisEvent object.