You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
500 B
C++
21 lines
500 B
C++
#include "classicinputtype.h"
|
|
|
|
ClassicInputType::ClassicInputType(const microsec& timestamp, Action action) :
|
|
InputType(timestamp),
|
|
_action(action)
|
|
{}
|
|
|
|
ClassicInputType::~ClassicInputType()
|
|
{}
|
|
|
|
bool ClassicInputType::operator==(const Action& comparing_action) const
|
|
{
|
|
return _action == comparing_action;
|
|
}
|
|
|
|
bool ClassicInputType::operator==(const ClassicInputType& comparing_action) const
|
|
{
|
|
return _action == comparing_action._action
|
|
&& _button == comparing_action._button;
|
|
}
|