x11: make dependancy on libudev optional
Created by: Hinsbart
fixes #3702 (closed)
Udev monitoring can be optionally enabled by compiling with udev=yes
, removes the gamepad
flag.
Else, we loop through /dev/input/event0
to event31
once per second to discover new devices.
Disconnection should be instant.
ping @punto-