Init to invalid type automatically
This commit is contained in:
parent
3b41a0437b
commit
dff3f6a13d
2 changed files with 7 additions and 0 deletions
|
@ -224,6 +224,11 @@ AxisEvent::key_from_string(const std::string& str)
|
|||
return ev;
|
||||
}
|
||||
|
||||
AxisEvent::AxisEvent() :
|
||||
type(-1)
|
||||
{
|
||||
}
|
||||
|
||||
bool
|
||||
AxisEvent::is_valid() const
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue