Fix timestamp usage with new Linux struct input_event Since Linux kernel struct input_event has dropped the direct usage of struct timeval on 32-bit system due to Y2038 problem, recover time retrieving indirectly.
See also https://gitlab.gnome.org/GNOME/vala/-/issues/1152 and https://github.com/libsdl-org/SDL/pull/7884/files for similar issues and fixes.