Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 1 Support › detect tablet

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4945

    Philipp

    Hi!

    I just wanted to ask if its possible to detect wether the user is playing on a tablet or on a phone. If yes, what would be the best solution!

    cheers

    #4948

    Christian
    Felgo Team

    Hi, currently the best option would be to detect the GameWindow size, which is the pixels on the device. We do not provide the size of the screen yet, but the resolution is also often sufficient. On iOS you can detect the device type based on its resolution (1024×768 or double the size is an iPad, otherwise an iPhone or iPod Touch).

    What would you need this information for?

    Cheers, Chris

    #4949

    Philipp

    Hi!

    In our newest update it will be possible to play for four persons on one device. Due to usability this should only be possible on tablets. The screen resolution is therefore not really sufficient. Best would be to get the information about the screen size in inch, so that I could say sth. like that

    if(sizeInInch > 7) fourPlayersAllowed = true 

    cheers

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.