Self-made TextField
in
Programming Questions
•
4 months ago
Hi everyone,
I've started to build an own simple TextField - unfortunately I stuck now :/
Who can take a look at the code, how should I go ahead? Thx indeed!
- Boolean TextfieldClick;
- void draw() {
- //TextField
- rect(25, 645, 200, 40);
- noStroke();
- //Click on the rect.
- if(mouseX>25 && mouseX<225 && mouseY>645 && mouseY<685) {
- if(mousePressed && mouseButton == LEFT) {
- TextfieldClick = true;
- }
- }
- if(TextfieldClick) {
- ??? (Maybe the keyCode for the Keyboard?)
- }
- }
1