scrpting: restore legacy touch state feature, deprecate it and replace with a more generic onTouch handler

This commit is contained in:
jean-emmanuel 2022-01-12 14:42:39 +01:00
parent d478de49f6
commit 24db0ed984
11 changed files with 147 additions and 65 deletions

View file

@ -9,6 +9,7 @@
- widgets
- renamed `script` to `onValue`, `draw` to `onDraw`, `touch` to `onTouch`
- added `onCreate` script property to all widgets
- added `onTouch` script to widgets that supported the touch state variable in scripts (now deprecated)
- canvas: expose additional touch event informations (`radiusX`, `radiusY`, `rotationAngle` and iOS-only `altitudeAngle`, `azimuthAngle` and `touchType`)