PLATFORMINFO$ - "DEVICE" & "BATTERY"

Previous topic - Next topic

MrTAToad

DEVICE and BATTERY types aren't recognised in webOS

Kitty Hello

What should device return?
The battery is not known so far. The 2.0 SDK might bring an API.

MrTAToad

"DEVICE" should return SMARTPHONE for webOS (and Android Smartphones), although the tablet should return "TABLET" (as should Android Tablets :) )

spacefractal

#3
hmm, WEBOS of course for device and ANDROID for androids?

SMARTPHONE should really been removed that dont give any means anymore (its returned if no touchscreen is detected.... why?).

This due Android might have variered form for touch as well physical controls (Some have keypad, other keyboard, some game controllers). So I think its better to use a own info, like "CONTROLS" to detect that. If you add "CONTROL" info for that, SMARTPHONES is not required anymore, but can been kept as backward compatible.

Also bear in mind, Some Android Phones that support multi touch have a axis flip issues and hence its should not been used if you ask me, or warn about it.





Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrTAToad

SMARTPHONE is important as you might need to detect whether a program is running on a phone or a tablet (screen size differences).


spacefractal

Smartphone is already used for wince without touchscreen.

This can been fooled when webos have touchscreen.

So much better to just tell which platform it's is on.

Screensize can already been detected by using desktop resoulution....

it's more how to detect controllers for android as well.

So webos is more smart to been used.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrTAToad