Forums

OverviewV-Play 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
    V-Play 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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support