Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
p5js-interaction [2024/02/22 00:20] renickp5js-interaction [2024/02/22 00:31] renick
Line 16: Line 16:
 p5js also has some functions that deal with mouse position relative to the previous frame, including detecting mouse movement, mouse dragging, and whether the left button is pressed. There's also a function for mouse wheel, but mouse wheels are not always implemented on mice or may be implemented in different ways. p5js also has some functions that deal with mouse position relative to the previous frame, including detecting mouse movement, mouse dragging, and whether the left button is pressed. There's also a function for mouse wheel, but mouse wheels are not always implemented on mice or may be implemented in different ways.
  
-====== tracking the mouse ======+===== tracking the mouse =====
  
 In the following example, we make a box follow the mouse. In the following example, we make a box follow the mouse.
Line 114: Line 114:
  
 Read more about the keyIsDown function here: https://p5js.org/reference/#/p5/keyIsDown Read more about the keyIsDown function here: https://p5js.org/reference/#/p5/keyIsDown
 +
 +===== more about mouse and keyboard in p5js =====
 +
 +For more on mouse and keyboard interaction in p5js, see the 'mouse' and 'keyboard' section in the 'Events' section of the reference here: https://p5js.org/reference/
  
 ===== using mouse and keyboard events outside of p5js ===== ===== using mouse and keyboard events outside of p5js =====
  • p5js-interaction.txt
  • Last modified: 3 months ago
  • by renick