Class AnimatingState
Input state used while animations are running. While active, user input is suppressed to prevent conflicts with animated transitions.
public sealed class AnimatingState : IInputState
- Inheritance
-
AnimatingState
- Implements
- Inherited Members
Properties
Instance
public static AnimatingState Instance { get; }
Property Value
IsModal
Gets whether this state blocks other interactions.
public bool IsModal { get; }
Property Value
Name
Gets the name of this state for debugging.
public string Name { get; }
Property Value
Methods
Enter(InputStateContext)
Called when entering this state.
public void Enter(InputStateContext context)
Parameters
contextInputStateContext
Exit(InputStateContext)
Called when exiting this state.
public void Exit(InputStateContext context)
Parameters
contextInputStateContext
HandleKeyDown(InputStateContext, KeyEventArgs)
Handles key down events.
public StateTransitionResult HandleKeyDown(InputStateContext context, KeyEventArgs e)
Parameters
contextInputStateContexteKeyEventArgs
Returns
HandlePointerMoved(InputStateContext, PointerEventArgs)
Handles pointer moved events.
public StateTransitionResult HandlePointerMoved(InputStateContext context, PointerEventArgs e)
Parameters
contextInputStateContextePointerEventArgs
Returns
HandlePointerPressed(InputStateContext, PointerPressedEventArgs, Control?)
Handles pointer pressed events.
public StateTransitionResult HandlePointerPressed(InputStateContext context, PointerPressedEventArgs e, Control? source)
Parameters
contextInputStateContextePointerPressedEventArgssourceControl
Returns
HandlePointerReleased(InputStateContext, PointerReleasedEventArgs)
Handles pointer released events.
public StateTransitionResult HandlePointerReleased(InputStateContext context, PointerReleasedEventArgs e)
Parameters
contextInputStateContextePointerReleasedEventArgs
Returns
HandlePointerWheel(InputStateContext, PointerWheelEventArgs)
Handles pointer wheel events.
public StateTransitionResult HandlePointerWheel(InputStateContext context, PointerWheelEventArgs e)
Parameters
contextInputStateContextePointerWheelEventArgs
Returns
Update(InputStateContext, double)
Called each frame for states that need continuous updates (e.g., animations).
public void Update(InputStateContext context, double deltaTime)
Parameters
contextInputStateContextdeltaTimedouble