Add touch joystick movement

This commit is contained in:
schmelczerandras 2020-10-23 18:06:56 +02:00
parent 23fa7646d6
commit 8b49b44ebf
7 changed files with 161 additions and 95 deletions

View file

@ -1,3 +1,3 @@
export function last<T>(a: Array<T>): T | null {
export function last<T>(a: ArrayLike<T>): T | null {
return a.length > 0 ? a[a.length - 1] : null;
}