/// <summary> /// Focus the given input focus target. /// </summary> public override void Focus(IInputFocus target) { if (target == CurrentInputFocus) { return; } CurrentInputFocus = target; if (string.IsNullOrEmpty(target.ActionMapName) == false) { playerInput.SwitchCurrentActionMap(target.ActionMapName); } target.OnFocus(); OnFocused?.Invoke(this, new InputFocusEventArgs(target)); }
public InputFocusEventArgs(IInputFocus inputFocus) { InputFocus = inputFocus; }
/// <summary> /// Focus the given input focus target. /// </summary> public abstract void Focus(IInputFocus target);