summaryrefslogtreecommitdiffstats
path: root/minuitwrp/events.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--minuitwrp/events.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/minuitwrp/events.c b/minuitwrp/events.c
index bd55e5ae9..7b4655d8e 100644
--- a/minuitwrp/events.c
+++ b/minuitwrp/events.c
@@ -167,11 +167,18 @@ static int vk_init(struct ev *e)
printf("Event object: %s\n", e->deviceName);
#endif
+#ifdef WHITELIST_INPUT
+ if (strcmp(e->deviceName, EXPAND(WHITELIST_INPUT)) != 0)
+ {
+ e->ignored = 1;
+ }
+#else
// Blacklist these "input" devices
if (strcmp(e->deviceName, "bma250") == 0 || strcmp(e->deviceName, "bma150") == 0 || strcmp(e->deviceName, "accelerometer") == 0)
{
e->ignored = 1;
}
+#endif
strcat(vk_path, e->deviceName);