From 8e2364f03eb822b5086732b7f8ceee8e59a874a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Mon, 28 Jun 2021 22:17:00 +0200 Subject: [PATCH] feat: add keyboard filter 0 for any key --- lib-pheripherals/src/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib-pheripherals/src/input.c b/lib-pheripherals/src/input.c index cd639e9..ed8ae5e 100644 --- a/lib-pheripherals/src/input.c +++ b/lib-pheripherals/src/input.c @@ -83,7 +83,7 @@ int16_t commands_execute(commands_t * commands, input_type_t type, char filter, for (int i = 0; i < commands->count; i++) { command_t command = commands->commands[i]; - if (command.input.filter == filter && command.input.type == type) { + if ((command.input.filter == filter || command.input.filter == 0) && command.input.type == type) { command.cmd(command.state, amount); commands_executed++; } -- 2.48.1