internal bool IsAxisLeaving(ActionButtonAxisMapping action) { if (action.ScreenPosition == Rectangle.Empty) { return(false); } return(IsAxisLeaving(action.ScreenPosition)); }
internal bool IsActionTriggered(ActionButtonAxisMapping action) { if (!IsAxisHover(action.ScreenPosition)) { return(false); } if (action.Primary != MouseButtons.None) { if (IsButtonTriggered(action.Primary) && (IsKeyTriggered(action.PrimaryMod) || IsKeyPressed(action.PrimaryMod))) { return(true); } } if (action.Secondary != MouseButtons.None) { if (IsButtonTriggered(action.Secondary) && (IsKeyTriggered(action.SecondaryMod) || IsKeyPressed(action.SecondaryMod))) { return(true); } } return(false); }