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
function setup()
startTime=ElapsedTime
counter=0
detecting=1
iPad=0
end
function draw()
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
end