Input?

Monkey Forums/Monkey Programming/Input?

Hotshot(Posted 2013) [#1]
How do you do Input on HTML5?


impixi(Posted 2013) [#2]
What type of input?
Using Mojo? Or JavaScript wrapped for use with monkey?


Hotshot(Posted 2013) [#3]
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?


AdamRedwoods(Posted 2013) [#4]
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?


Hotshot(Posted 2013) [#5]
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:)


impixi(Posted 2013) [#6]
You could use GetChar in the Update method of Mojo's App class:



Here's an example of a command line: