How can I get the platform ID?

Previous topic - Next topic

aroldo

Happy New Year to all !

I wounder if there is a way to know, programatically, if GLBasic is running on a PC or a mobile platform?
[a http://apd-games.com/][img http://apd-games.com/images/APDGames135.png][/a]
MacBook Pro OS X El Capitan
XCode Version 7
iPhone 6 running  iOS 9
iPad Mini running  iOS 7.1
Galaxy S5
Dell Latitude Windows 8 Enterprise
Palm Pre, Palm Pre2

Crivens

Look in the user manual for:-
?IFDEF WIN32
?IFDEF WEBOS
?IFDEF IPHONE

There are more but that should get you on the right path.

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

Ian Price

Code (glbasic) Select

PLATFORMINFO$("DEVICE")

is good too.
I came. I saw. I played.

michael

PLATFORMINFO$("DEVICE") is nice but has someone a good peace of code to get the ios version of the iphone ?
asking because I have some code who makes problem with ios5 !!!!

aroldo

[a http://apd-games.com/][img http://apd-games.com/images/APDGames135.png][/a]
MacBook Pro OS X El Capitan
XCode Version 7
iPhone 6 running  iOS 9
iPad Mini running  iOS 7.1
Galaxy S5
Dell Latitude Windows 8 Enterprise
Palm Pre, Palm Pre2