Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

651 B
Raw Blame
enum PointerInput {
  /// Taps / buttons presses & releases.
  tap,

  /// Scroll / mouse wheels events.
  scroll,

  /// Drag events, a pointer is in a down state and dragged across the terminal.
  drag,

  /// Move events, a pointer is in an up state and moved across the terminal.
  move,
}

class PointerInputs {
  final Set<PointerInput> inputs;

  const PointerInputs(this.inputs);

  const PointerInputs.none() : inputs = const <PointerInput>{};

  const PointerInputs.all()
      : inputs = const <PointerInput>{
          PointerInput.tap,
          PointerInput.scroll,
          PointerInput.drag,
          PointerInput.move,
        };
}