Hi,
I am an experienced Embedded Linux Engineer with good experience in X11 and Wayland display stacks and programming in C/C++. I have looked at the code and I can do this for you. I just have a few questions like how would you like to select the desired input device to filter out? Are you expecting to select the device from a drop-down list of all the available devices or just by passing a command-line argument like device id is passed to xinput? Creating a drop-down list using just xlib might not be very straight-forward and might require using a higher-level GUI toolkit like GTK, Qt5? Would love to discuss this further with you.
Best regards,