Hi everyone,
I’m working in my first game with Corona SDK and I have a problem since few days :
I use a stick to control the player but this stick has to be in the center of the screen if player plays on SmartPhone and it has to be in the left if he plays on Tablet.
In a first time I use this solution :
http://developer.coronalabs.com/forum/2012/01/25/check-tablet-vs-handheld-device
But when I tried on differents phone (Galaxy Note, Sony Xperia S, etc), some was detected as tablet. For example, Xperia’s resolution is 780*1024.
In a second time, I’ve tried to use this :
http://developer.coronalabs.com/forum/2011/08/19/detecting-dpi
But we need to know the size of each phone and tablet.
Can you help me to find a solution to answer to my first objective :
I would want that the stick takes place at the left of the screen when we play on tablet and at the center when we play on SmartPhone.
Thanks !
PS : Is it impossible to know the real size (in inch for example) of the screen ? [import]uid: 132686 topic_id: 29084 reply_id: 329084[/import]
[import]uid: 132686 topic_id: 29084 reply_id: 117506[/import]