Init to invalid type automatically

This commit is contained in:
Ingo Ruhnke 2010-05-26 15:17:35 +02:00
parent 3b41a0437b
commit dff3f6a13d
2 changed files with 7 additions and 0 deletions

View file

@ -224,6 +224,11 @@ AxisEvent::key_from_string(const std::string& str)
return ev;
}
AxisEvent::AxisEvent() :
type(-1)
{
}
bool
AxisEvent::is_valid() const
{

View file

@ -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;