Can anyone offer any thoughts on the best way to determine whether a TADS 3 game is being played on a smartphone vs. a tablet device vs. a desktop/laptop? For my project, the most important distinction is whether it’s a smartphone, since a smartphone screen is so small that I would have to implement a feature to allow the user to flip back and forth between the main text output and the interactive maps that they also have to see.
Here are the thoughts I’ve come up with:
- Call systemInfo(SysInfoOsName) to retrieve the operating system. Not at all perfect, as iOS and Android are both used for both tablet devices and for smartphones.
- Prompt the user to indicate this manually at the start of the game.
#2 seems like it might be necessary. Anyone disagree?