Adding new API for gesture detection on Game class

This commit is contained in:
Erick Zanardo
2019-10-23 20:38:17 -03:00
committed by Erick (CptBlackPixel)
parent 8852e7a07a
commit 4dcb32b107
2 changed files with 20 additions and 27 deletions

View File

@ -113,6 +113,8 @@ class Util {
/// This properly binds a gesture recognizer to your game.
///
/// Use this in order to get it to work in case your app also contains other widgets.
///
/// @Deprecated('This method can lead to confuse behaviour, use the gestures methods provided by the Game class')
void addGestureRecognizer(GestureRecognizer recognizer) {
if (GestureBinding.instance == null) {
throw Exception(