refactor(modules): Handle events using signal_receiver

This commit is contained in:
Michael Carlberg
2016-12-21 08:38:44 +01:00
parent c01f111e34
commit 7979f5b3d4
26 changed files with 176 additions and 161 deletions

View File

@ -163,7 +163,9 @@ namespace modules {
/**
* Process scroll events by changing backlight value
*/
bool xbacklight_module::handle_event(string cmd) {
bool xbacklight_module::on(const input_event_t& evt) {
string cmd{*evt.data()};
int value_mod = 0;
if (cmd == EVENT_SCROLLUP) {