minuitwrp: use a whitelist for the input device instead of a hardcoded ignore list

 * use a whitelist for the input device to listen on, every other will be ignored

Change-Id: I1296a45ec3d5ca0bca2a9e2601b0710e2c030fde
diff --git a/minuitwrp/events.c b/minuitwrp/events.c
index bd55e5a..7b4655d 100644
--- a/minuitwrp/events.c
+++ b/minuitwrp/events.c
@@ -167,11 +167,18 @@
     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);