[−][src]Function gilrs::ev::filter::axis_dpad_to_button
pub fn axis_dpad_to_button(
ev: Option<Event>,
gilrs: &mut Gilrs
) -> Option<Event>
Maps axis dpad events to button dpad events.
This filter will do nothing if gamepad have dpad buttons (to prevent double events for same
element) and if standard NativeEvCode
for dpads is used by some other buttons. It will always
try to map if SDL mappings contains mappings for all four hats.