|
Post by cosmicfloppydisk on Jul 19, 2016 5:16:43 GMT
Why isn't this a thing yet? It's already hard coded in the the graphics screen to hide the title bar, yet we still don't have access to that function ;(
|
|
|
Post by lars on Jul 19, 2016 9:48:08 GMT
Yeah that would be nice. But with Multitouch support should also multithreading support come.
|
|
|
Post by warspyking on Jul 26, 2016 19:01:56 GMT
Yeah that would be nice. But with Multitouch support should also multithreading support come. Multi-threading isn't hard to implement yourself (I think I made a post about this a while back where I made a multi-threader)
|
|
|
Post by warspyking on Jul 26, 2016 19:04:59 GMT
|
|
|
Post by lars on Aug 2, 2016 4:39:35 GMT
I remember that post, but your script doesn't enable full Multithreading. Your Script just changes the order of the call, so it looks like there are 2 threads. Great work by the way So but when you want to use sys.input, then this will block the script and your multithreading will stop working. We are searching for a multithreading, which allows us to use blocking-functions without blocking Kind Regards Lars
|
|
|
Post by warspyking on Aug 3, 2016 5:54:27 GMT
I remember that post, but your script doesn't enable full Multithreading. Your Script just changes the order of the call, so it looks like there are 2 threads. Great work by the way So but when you want to use sys.input, then this will block the script and your multithreading will stop working. We are searching for a multithreading, which allows us to use blocking-functions without blocking Kind Regards Lars I mean, yeah, but other then functions which put the current thread on hold, my task scheduler works great. I'll admit though, a way to run things as the user provides input would help tremendously.
|
|
|
Post by leon26leon26 on Aug 3, 2016 12:00:17 GMT
From multi-touch to multithreading xD
For the multi-touch, provide additional parameters for touchbegan() etc. I think that'd work nicely.
As soon as multi-touch is out I wanna try making a twin stick shooter.
|
|
|
Post by warspyking on Aug 3, 2016 13:01:43 GMT
From multi-touch to multithreading xD For the multi-touch, provide additional parameters for touchbegan() etc. I think that'd work nicely. As soon as multi-touch is out I wanna try making a twin stick shooter. Well Codea implements it by giving each touch an ID Perhaps the touch began etc functions should take a function, and not only pass x/y but also an ID to identify it from other simultaneous touches.
|
|
|
Post by leon26leon26 on Aug 3, 2016 13:26:18 GMT
From multi-touch to multithreading xD For the multi-touch, provide additional parameters for touchbegan() etc. I think that'd work nicely. As soon as multi-touch is out I wanna try making a twin stick shooter. Well Codea implements it by giving each touch an ID Perhaps the touch began etc functions should take a function, and not only pass x/y but also an ID to identify it from other simultaneous touches. and then you run touchmoved twice?
|
|
|
Post by warspyking on Aug 3, 2016 13:35:17 GMT
Well Codea implements it by giving each touch an ID Perhaps the touch began etc functions should take a function, and not only pass x/y but also an ID to identify it from other simultaneous touches. and then you run touchmoved twice? draw.doevents would fire for each touch of course, here's an example: draw.touchbegan(function(X,Y,ID) print(ID.." touched at", X, Y) end) Every NEW touch would get a new ID, but when one touch moves/ends it will keep it's ID. This allows us to identify each touch from the others, and register multiple touches.
|
|
|
Post by warspyking on Aug 3, 2016 13:38:15 GMT
I remember that post, but your script doesn't enable full Multithreading. Your Script just changes the order of the call, so it looks like there are 2 threads. Great work by the way So but when you want to use sys.input, then this will block the script and your multithreading will stop working. We are searching for a multithreading, which allows us to use blocking-functions without blocking Kind Regards Lars To achieve this now, you could simulate the output/keyboard in the draw screen.
|
|
|
Post by Admin on Aug 10, 2016 17:00:38 GMT
Future release will support multi touch. Touch Lua already supports multi threading. If you think its not please prove it to me in order to fix the issue.
|
|
|
Post by warspyking on Aug 10, 2016 17:40:21 GMT
Future release will support multi touch. Touch Lua already supports multi threading. If you think its not please prove it to me in order to fix the issue. How can I continuously print "Awaiting input.", "Awaiting input..", "Awaiting input..." (repeat), until the user finishes typing input?
|
|
|
Post by Admin on Aug 10, 2016 17:49:00 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.
|
|
|
Post by warspyking on Aug 10, 2016 18:56:32 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.
|
|