Table of Contents

Class IdleState

Namespace
FlowGraph.Avalonia.Input.States
Assembly
FlowGraph.Avalonia.dll

The default idle state - handles initial interactions and transitions to other states.

public class IdleState : InputStateBase, IInputState
Inheritance
IdleState
Implements
Inherited Members

Remarks

This state delegates to the InputDispatcher for processor-based routing when available, falling back to legacy pattern matching for compatibility.

Migration Path (Phase 3):

  1. InputDispatcher performs hit test and routes to appropriate processor
  2. Processors handle element-specific logic (selection, drag start, etc.)
  3. State transitions are returned and applied by InputStateMachine

Properties

Instance

public static IdleState Instance { get; }

Property Value

IdleState

Name

Gets the name of this state for debugging.

public override string Name { get; }

Property Value

string

Methods

HandleKeyDown(InputStateContext, KeyEventArgs)

Handles key down events.

public override StateTransitionResult HandleKeyDown(InputStateContext context, KeyEventArgs e)

Parameters

context InputStateContext
e KeyEventArgs

Returns

StateTransitionResult

HandlePointerPressed(InputStateContext, PointerPressedEventArgs, Control?)

Handles pointer pressed events.

public override StateTransitionResult HandlePointerPressed(InputStateContext context, PointerPressedEventArgs e, Control? source)

Parameters

context InputStateContext
e PointerPressedEventArgs
source Control

Returns

StateTransitionResult

HandlePointerWheel(InputStateContext, PointerWheelEventArgs)

Handles pointer wheel events.

public override StateTransitionResult HandlePointerWheel(InputStateContext context, PointerWheelEventArgs e)

Parameters

context InputStateContext
e PointerWheelEventArgs

Returns

StateTransitionResult