Function InputEvent.shortcutMatch

Returns true if the given input event is checking for the same key (InputEventKey), button (InputEventJoypadButton) or action (InputEventAction).

bool shortcutMatch (
  InputEvent event
) nothrow @nogc const;