#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
Seems these may have been missed in the gamepad implementation, copied them from keyboard.rs.