This crate contains Linux joydev definitions from linux/joystick.h.
linux/joystick.h
Those are raw definitions so for documentation see the official kernel documentation.