Input?
Monkey Forums/Monkey Programming/Input?
| ||
How do you do Input on HTML5? |
| ||
What type of input? Using Mojo? Or JavaScript wrapped for use with monkey? |
| ||
Input is where user press which number the user want It is normal code of trying to get input on screen on HTML5 Website but when I have checked all the commands on blitz Monkey and I am surprise there is no input commands.... why that? |
| ||
If KeyHit(KEY_1) Then ... but if you want LINE input, then you may need some helper code, perhaps JungleGUI or another GUI package. Does Diddy do this? |
| ||
like old blitzbasic Choice=("Which one...Press Num 1 or 2 or 3") if Choice=1 do this end That what I mean but I guess Blitz Monkey to have manual function act like input commands if you know what I mean:) |
| ||
You could use GetChar in the Update method of Mojo's App class: Here's an example of a command line: |