first std::function test

This commit is contained in:
Martin Brodbeck 2024-03-07 15:15:20 +01:00
parent 87ea5f663f
commit 665e50f456
3 changed files with 19 additions and 0 deletions

View file

@ -103,4 +103,10 @@ void WinKeyer::run(queue_t &queue)
m_commandState = CommandState::None;
}
}
}
void WinKeyer::addObserver(std::function<void()> obs) {
m_observers.push_back(obs);
obs();
}