Input
trubblegum edited this page Mar 27, 2012
·
4 revisions
A text input box, which gains focus when clicked, and calls element:done() when it has focus and the enter key is pressed.
local element = Gspot.input(label, pos, parent)
Additional values :
- string
value
text in the input box - number
cursor
position of the cursor - number
cursorlife
used to blink the cursor when the element has focus - nil or number
keydelay
initial delay before repeating - nil or number
keyrepeat
delay between repeated keystrokes
click, keypress, done