todo make tests working
This commit is contained in:
@@ -15,7 +15,7 @@ void FlippR_Driver::Input::DistributingEvent::distribute()
|
||||
std::chrono::milliseconds elapsed_time = std::chrono::duration_cast<std::chrono::milliseconds>(now - last_activation);
|
||||
if(elapsed_time > deactivation_time)
|
||||
{
|
||||
event_notifier->distribute_event(std::shared_ptr<Event>(this)); // todo why new shared ptr?
|
||||
event_notifier->distribute_event(*this); // todo why new shared ptr?
|
||||
this->last_activation = now;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user