Skip to content

Commit 2d7ea3c

Browse files
committed
chore: Deprecate old detectors fully replaced with callbacks
1 parent f21c5a8 commit 2d7ea3c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/flame/lib/src/gestures/detectors.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ mixin TapDetector on Game {
1818
}
1919
}
2020

21+
@Deprecated('Use SecondaryTapCallbacks instead')
2122
mixin SecondaryTapDetector on Game {
2223
void onSecondaryTapDown(TapDownInfo info) {}
2324
void onSecondaryTapUp(TapUpInfo info) {}
@@ -32,6 +33,7 @@ mixin SecondaryTapDetector on Game {
3233
}
3334
}
3435

36+
@Deprecated('Use TertiaryTapCallbacks instead')
3537
mixin TertiaryTapDetector on Game {
3638
void onTertiaryTapDown(TapDownInfo info) {}
3739
void onTertiaryTapUp(TapUpInfo info) {}
@@ -46,6 +48,7 @@ mixin TertiaryTapDetector on Game {
4648
}
4749
}
4850

51+
@Deprecated('Use DoubleTapCallbacks instead')
4952
mixin DoubleTapDetector on Game {
5053
void onDoubleTap() {}
5154
void onDoubleTapCancel() {}
@@ -56,6 +59,7 @@ mixin DoubleTapDetector on Game {
5659
}
5760
}
5861

62+
@Deprecated('Use LongPressCallbacks instead')
5963
mixin LongPressDetector on Game {
6064
void onLongPress() {}
6165
void onLongPressStart(LongPressStartInfo info) {}

0 commit comments

Comments
 (0)