Otherwise aagree on Allanons approach, but when it comes to this specific command, I could also see zyleseas approach being wise approach, mainly because we dont really know what future holds. Maybe there is one day Amiga Tablet available to us, and then we might actualyl have use for that show/hide keyboard command, and if having Allanons approach, then would need to edit the code, compared to Zyleseas approach that all you woudl need to do is compile it with new Hollywood version and voila, it works on new Amiga tablets as it is.
Maybe one approach could be a new command which would give you possiblity to control which platforms would ignore or only drive some commands:
Code: Select all
ONLYRUNCOMMANDONPLATFORM(command, {platform1, platform2, ...})
IGNORECOMMANDONPLATFORM(command, {platform1, platform2, ...})
This way you could put your programs first lines as setting which commands are ran on which platforms, with idea that for example hide/show keyboard you could specifically choose to be only executed on Android, and nowhere else, and then if there comes more, add more platforms to the list, while if there is something that tablets dont have, you could tell it to be Ignored in those platforms and yet if Hollywood starts to support for example Commodore 64 suddenly, then it would still work on Commodore 64 as it wouldnt be having that limitation.
IN case you would then need to modify command to run or ignore more platforms, then it would be simply a matter of checking first few lines of your program and setting or removing some platforms from the list, instead of going through every place in your code and looking for those Allanons suggested lines and adding platforms to there.