click method

  1. @override
Future<void> click(
  1. double x,
  2. double y,
  3. String button,
  4. int count, [
  5. List<String>? modifiers,
])
override

Implementation

@override
Future<void> click(
  double x,
  double y,
  String button,
  int count, [
  List<String>? modifiers,
]) async {
  await moveMouse(x, y);
  if (modifiers != null && modifiers.isNotEmpty) {
    // Press modifiers, click, release modifiers
    for (final m in modifiers) {
      _logDebug('modifier press: $m');
    }
    _logDebug('click: $button x$count at ($x, $y)');
    for (final m in modifiers.reversed) {
      _logDebug('modifier release: $m');
    }
  } else {
    _logDebug('click: $button x$count at ($x, $y)');
  }
}