The struct input_event is, among others, defined in include/linux/input.h.
From 5. Event interface in Linux kernel Documentation/input/input.txt (and modified to provide the correct header file names):
-
timeis the timestamp, it returns the time at which the event happened. -
typeis for exampleEV_RELfor relative moment,EV_KEYfor a keypress or
release. More types are defined in include/linux/input-event-codes.h. -
codeis event code, for exampleREL_XorKEY_BACKSPACE, again a complete
list is in include/linux/input-event-codes.h. -
valueis the value the event carries. Either a relative change for
EV_REL, absolute new value forEV_ABS(joysticks …), or0forEV_KEYfor
release,1for keypress and2for autorepeat.
For guides and example code, do a web search for "linux kernel" "input subsystem".