Skip to content

Commit 4444e80

Browse files
authored
Update README.md
1 parent 38b0071 commit 4444e80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,4 +421,6 @@ Finally, touch and mouse event handling has been combined to improve sketch cons
421421
* `touchEnded()`
422422
* `touchMoved()`
423423

424+
In p5.js 2.0, instead of having separate methods for mouse and touch, we now use the browser's pointer API to handle both simultaneously. Try defining mouse functions as usual and accessing the global touches array to see what pointers are active for multitouch support!
425+
424426
All of the above usages in p5.js 1.x remain available with the [data.js](https://github.com/processing/p5.js-compatibility/blob/main/src/data.js) compatibility add-on library.

0 commit comments

Comments
 (0)