refactor(modules): Input handling
This commit is contained in:
parent
99764b930e
commit
b422d1d1a4
23 changed files with 55 additions and 93 deletions
src/modules
|
@ -316,9 +316,7 @@ namespace modules {
|
|||
return true;
|
||||
}
|
||||
|
||||
bool mpd_module::on(const input_event_t& evt) {
|
||||
string cmd{*evt.data()};
|
||||
|
||||
bool mpd_module::input(string&& cmd) {
|
||||
if (cmd.compare(0, 3, "mpd") != 0) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue