Class IdleState
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):
- InputDispatcher performs hit test and routes to appropriate processor
- Processors handle element-specific logic (selection, drag start, etc.)
- State transitions are returned and applied by InputStateMachine
Properties
Instance
public static IdleState Instance { get; }
Property Value
Name
Gets the name of this state for debugging.
public override string Name { get; }
Property Value
Methods
HandleKeyDown(InputStateContext, KeyEventArgs)
Handles key down events.
public override StateTransitionResult HandleKeyDown(InputStateContext context, KeyEventArgs e)
Parameters
contextInputStateContexteKeyEventArgs
Returns
HandlePointerPressed(InputStateContext, PointerPressedEventArgs, Control?)
Handles pointer pressed events.
public override StateTransitionResult HandlePointerPressed(InputStateContext context, PointerPressedEventArgs e, Control? source)
Parameters
contextInputStateContextePointerPressedEventArgssourceControl
Returns
HandlePointerWheel(InputStateContext, PointerWheelEventArgs)
Handles pointer wheel events.
public override StateTransitionResult HandlePointerWheel(InputStateContext context, PointerWheelEventArgs e)
Parameters
contextInputStateContextePointerWheelEventArgs