This commit is contained in:
LZX committed 2026-09-16 11:58:58 +08:00
1 parent b5328277ab
commit 1ab5d52449
89 files changed
+14197 -65

No files matched your search

@@ -0,0 +1,29 @@
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,
};
}