Re: input problem

new topic     » topic index » view thread      » older message » newer message

>  I am using wait_key to enter a number value from the keyboard.
>
>     i = wait_key()

Do this:

    i = '1' + 1 + wait_key ()

And then it will work.
Wait_key returns the scan code of the key, not its actual value.

Good luck.

Ralf

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu