We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi - I'm new to processing and this forum. Please could somebody confirm (or otherwise) that processing is a good example of event driven programming. I need to teach this concept to some FE students and would like to introduce them to Processing at some stage - Could this be an ideal time???? Many Thanks.
Answers
Partially yes. I think most modern languages when dealing w/ user input goes w/ the event-driven approach.
Processing is based on Java which readily supports event driven programming.
So Processing would be a good choice especially is the students are new to programming because it hides some of the complexities of the Java language.
Yeah, mousePressed ()
mouseReleased()
mouseClicked()
mouseWheel ()
keyPressed() etc etc ....
@chrisnewth -- following @Chrisir --
The Processing UI paradigm is event-driven, and many of its UI demo sketches are good examples of this. I would recommend looking through the reference page under the sections Input > Mouse and Input > Keyboard:
For example:
This introduces the basics:
mouseClicked()
) to handle eventsdraw()