ControlP5: How to determine from which controller the keyPressed() function was called?
in
Contributed Library Questions
•
2 years ago
Hello, probably a dumb question for someone who knows Processing and ControlP5 well (unfortunately I don't and try to find my way through
):
I would like - if the TAB key is pressed - to set the focus to another textfield, this other textfield depending on the one which is active at the moment the TAB key is pressed (I have about 100 textfields in one window). I imagine I could do this using the keyPressed() function, but within this function I would need to determine which of the about 100 textfields is the active one at the moment that TAB is pressed, in order to decide which other textfield to set the focus to next. I hope my description is understandable. Thanks for any help.
1