Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
p5js-interaction [2024/02/21 23:46] – renick | p5js-interaction [2024/02/21 23:58] – renick | ||
---|---|---|---|
Line 104: | Line 104: | ||
<iframe src=" | <iframe src=" | ||
</ | </ | ||
+ | |||
+ | ===== doing something while a key is down ===== | ||
+ | |||
+ | Above, we stored key presses. We can also do something based on whether a certain key is pressed. The keyIsDown function returns either ' | ||
+ | |||
+ | < | ||
+ | <iframe src=" | ||
+ | </ | ||
+ | |||
+ | Read more about the keyIsDown function here: https:// | ||
===== using mouse and keyboard events outside of p5js ===== | ===== using mouse and keyboard events outside of p5js ===== | ||