// Init the textbox // The "focus" variable is set if the textbox has focus. focus = false; // Tabbed remembers if the user tabbed to this textbox earlier this step. tabbed = true; // The text that the textbox contains. myText = ""; // Text properties textFont = "Courier New"; textSize = 11; textStyle = fs_bold; // The color of the active text. activeColor = make_color(30, 230, 30); // The color of the inactive text. inactiveColor = make_color(20, 170, 20); // Cursor currently visible. cursorOn = false; // The speed of the cursor cursorDelay = 15; // Text position textX = 10; textY = 8; // Cursor position cursorX = 10; cursorY = 8; keyboard_string = myText; alarm[0] = cursorDelay;