Draggables weren't using the new coordinate system (#777)

* refactoring drag start events

* Fixing joystick, adding tests and examples

* format fixes
This commit is contained in:
Erick
2021-04-30 10:01:42 -03:00
committed by GitHub
parent d9e0acd3ff
commit 0cb64fb57f
11 changed files with 159 additions and 56 deletions

View File

@ -39,9 +39,9 @@ class MultitapAdvancedGame extends BaseGame
}
@override
void onDragStart(int pointerId, Vector2 position) {
void onDragStart(int pointerId, DragStartInfo info) {
end = null;
start = position;
start = info.eventPosition.game;
}
@override