Function gilrs::ev::filter::axis_dpad_to_button
source ยท pub fn axis_dpad_to_button(
ev: Option<Event>,
gilrs: &mut Gilrs,
) -> Option<Event>
Expand description
Maps axis dpad events to button dpad events.
This filter will do nothing if gamepad has 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.