I want to have different HUDs for my games if their runnin on my iphone vs runnin in my browser. The problem is I cant see any way of tellin during runtime which it is. I tried enabling my iphone controls layer using the touch Device Motion and Device Orientation options but it doesnt work.
I guess you could compare the Browser.Platform value (browser object) ? I don't have a phone, so I can't test it myself, but if the OS (therefore platform) is not mac or windows or another desktop OS, then it should be mobile.
You could also maybe compare the Browser.Agent value, to make sure it is "for mobile".
If this doesn't work, than maybe a plugin is required. Or maybe @Ashley has a tip to save the day.Kyatric2011-12-12 09:33:21
@smitchell @ aridale I have to clean it a little bit, and add some other functions in order to be more useful for a public release. I try to do it for tomorrow. If you have some needs, don't hesitate to pm me, i'll try to add them as much as possible.