diff --git a/src/axis_event.cpp b/src/axis_event.cpp index 41ec444..e20f7a5 100644 --- a/src/axis_event.cpp +++ b/src/axis_event.cpp @@ -224,6 +224,11 @@ AxisEvent::key_from_string(const std::string& str) return ev; } +AxisEvent::AxisEvent() : + type(-1) +{ +} + bool AxisEvent::is_valid() const { diff --git a/src/axis_event.hpp b/src/axis_event.hpp index 2c8cb33..ff134ed 100644 --- a/src/axis_event.hpp +++ b/src/axis_event.hpp @@ -46,6 +46,8 @@ private: static AxisEvent key_from_string(const std::string& str); public: + AxisEvent(); + void init(uInput& uinput) const; void send(uInput& uinput, int old_value, int value) const;