How can I detect if my game is running on an iPad?
Monkey Targets Forums/iOS/How can I detect if my game is running on an iPad?
| ||
As the title reads, does anyone know how I can detect whether or not my game is running on the iPad? Controls need adjusting for the huge screen, but I don't know how to tell other than to possibly read the devicewidth/height. Is that pretty much it? |
| ||
You will need to add something like this. Or use: http://www.monkeycoder.co.nz/Community/posts.php?topic=954 Get Device Type (IPod, IPhone, IPad) as String - GetDeviceType$() |
| ||
Just out of curiosity, is there any reason something along these lines wouldn't work? isIpad = (DeviceHeight()/DeviceWidth() = .75) or (DeviceWidth()/DeviceHeight() = .75) |
| ||
The iPad "mini" has a different aspect ratio. But it should still identify as an iPad. |
| ||
iPad mini's resolution is 1024x768, same aspect ratio |