Replies: 1 comment
-
Interesting. I looked at the Processing source code and I see the comments specifically mention setting ...
// if someone else wants to intercept the key, they should
// set key to zero (or something besides the ESC).
if (event.getAction() == KeyEvent.PRESS) {
//if (key == java.awt.event.KeyEvent.VK_ESCAPE) {
if (key == ESC) {
exit();
}
... I agree that what you are doing should be possible. I can't think of a way to do this without making the The alternative is to have some special I'll open an issue for this so I don't forget about it. It won't be in tomorrow's release but it will be in the next release after that one. |
Beta Was this translation helpful? Give feedback.
-
In Processing Python mode I have seen some examples with code like this:
But that doesn't work on py5 as the current sketch object, obtained with
get_current_sketch()
, won't allow fiddling with thekey
attribute. Any suggestions?Beta Was this translation helpful? Give feedback.
All reactions