Use epoll to support multiple input devices.
Implement hotplugging for input devices as well.