protected override bool OnJoystickRelease(InputState state, JoystickEventArgs args) { if (!HasFocus) { return(base.OnJoystickRelease(state, args)); } finalise(); return(true); }
protected override bool OnJoystickPress(InputState state, JoystickEventArgs args) { if (!HasFocus) { return(false); } bindTarget.UpdateKeyCombination(KeyCombination.FromInputState(state)); finalise(); return(true); }
protected override bool OnJoystickRelease(InputState state, JoystickEventArgs args) { ++JoystickReleaseCount; return(base.OnJoystickRelease(state, args)); }
protected virtual bool PropagateJoystickRelease(IEnumerable <Drawable> drawables, InputState state, JoystickEventArgs args) { var handledBy = drawables.FirstOrDefault(target => target.TriggerOnJoystickRelease(state, args)); if (handledBy != null) { Logger.Log($"JoystickRelease ({args.Button}) handled by {handledBy}.", LoggingTarget.Runtime, LogLevel.Debug); } return(handledBy != null); }