|
Post by leon26leon26 on Aug 23, 2016 17:17:34 GMT
Reading and writing to console blocks lua.you can't do it. But you should be able to make two (or more) printing threads. What you are asking for is read input with timeout. isn't that just 2 parallel threads and the interpreter bounces back and forth?
|
|
|
Post by warspyking on Aug 23, 2016 20:54:41 GMT
Wait my old post didn't go through?
When I quoted you I had said something like "I don't want timeout, as that would just simply end the input after N seconds"
An easy way to solve this is to give us a function that'll let us open/close the keyboard and take input key by key.
|
|
|
Post by leon26leon26 on Aug 25, 2016 8:53:52 GMT
Wait my old post didn't go through? When I quoted you I had said something like "I don't want timeout, as that would just simply end the input after N seconds" An easy way to solve this is to give us a function that'll let us open/close the keyboard and take input key by key. yes. And if you do that, also make it so we can receive keyboard events from external hardware. That'd open so many possibilities using draw. No weird touch controls, just standard WASD. *dreams*
|
|
|
Post by warspyking on Aug 25, 2016 14:34:22 GMT
Wait my old post didn't go through? When I quoted you I had said something like "I don't want timeout, as that would just simply end the input after N seconds" An easy way to solve this is to give us a function that'll let us open/close the keyboard and take input key by key. yes. And if you do that, also make it so we can receive keyboard events from external hardware. That'd open so many possibilities using draw. No weird touch controls, just standard WASD. *dreams* Why just draw? :/ Put it in sys
|
|
|
Post by leon26leon26 on Aug 26, 2016 9:23:31 GMT
yes. And if you do that, also make it so we can receive keyboard events from external hardware. That'd open so many possibilities using draw. No weird touch controls, just standard WASD. *dreams* Why just draw? :/ Put it in sys I mean combined with draw. Use keyboard controls for your iPhone game. That'd be really nice.
|
|
|
Post by warspyking on Aug 26, 2016 21:40:03 GMT
Why just draw? :/ Put it in sys I mean combined with draw. Use keyboard controls for your iPhone game. That'd be really nice. Yeah, I remember designing a keyboard, but couldn't finish it because I didn't know why it didn't work on iPad. I think it's still under Ask Question lol
|
|