Anyone have a better way of detecting which iPad is running the code? ElapsedTime is not updated inside loops, so here I count the number of draw cycles in 1 second. This method is both fragile and invasive!
– clumsy way to detect which iPad
startTime=ElapsedTime counter=0 detecting=1 iPad=0
if detecting == 1 then if ElapsedTime <= startTime+1 then counter=counter+1 else if counter <49 then print ("iPad1") iPad=1 else print("iPad2") iPad=2 end detecting=0 end end