player for Android8 SCALEMODe_AUTO

Report any Hollywood bugs here
Post Reply
plouf
Posts: 39
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

player for Android8 SCALEMODe_AUTO

Post by plouf » Wed Feb 13, 2019 12:05 am

hi

if you set @DISPLAY {width = 320, Height = 480,title =#TITLE,
DisableBlanker = True,
ScaleMode=#SCALEMODE_AUTO,
SmoothScale=True,
mode="FullScreenScale"}

and have some buttons, they are recognized in wrong position (used o be ok in player7)

changing to #SCALEMODE_LAYER, coordinated correct

ALSO #HW_ANDROID is not set in new player !

tested with android9 , mi a9

User avatar
airsoftsoftwair
Posts: 2832
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: player for Android8 SCALEMODe_AUTO

Post by airsoftsoftwair » Sat Feb 16, 2019 1:20 pm

plouf wrote:
Wed Feb 13, 2019 12:05 am
and have some buttons, they are recognized in wrong position (used o be ok in player7)
Please provide a full test script that I can try here.
plouf wrote:
Wed Feb 13, 2019 12:05 am
ALSO #HW_ANDROID is not set in new player !
What do you mean by that? #HW_ANDROID is only handled at compile time while the player is just a runtime which doesn't compile anything. So what is your exact use case for #HW_ANDROID?

plouf
Posts: 39
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: player for Android8 SCALEMODe_AUTO

Post by plouf » Sat Feb 16, 2019 3:44 pm

i have mailed full script and applets

btw how to "compile" for android ?
you just "compile an applet" correct?

User avatar
airsoftsoftwair
Posts: 2832
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: player for Android8 SCALEMODe_AUTO

Post by airsoftsoftwair » Mon Feb 18, 2019 4:17 pm

plouf wrote:
Sat Feb 16, 2019 3:44 pm
i have mailed full script and applets
There's a lot of code in there. Can't you make a very very short script with no external dependencies that shows the issue?
btw how to "compile" for android ?
you just "compile an applet" correct?
You can actually compile an applet specifically for Android or iOS by doing the following:

Code: Select all

Hollywood test.hws -compile testandroid.hwa -exetype android
Hollywood test.hws -compile testios.hwa -exetype ios
If you use "android" or "ios" instead of "applet", Hollywood will compile an applet but it will set the platform-specific constants for Android or iOS, e.g. #HW_ANDROID. See here.

User avatar
airsoftsoftwair
Posts: 2832
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: player for Android8 SCALEMODe_AUTO

Post by airsoftsoftwair » Sat Mar 02, 2019 8:59 pm

Code: Select all

- Fix: Wrong touch to mouse offset mapping when using "FullScreenScale" mode on Android
I'll push an update through Google Play soon because the current build of Hollywood 8.0 on Google Play is actually a debug version so I need to push an update anyway :oops:

plouf
Posts: 39
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: player for Android8 SCALEMODe_AUTO

Post by plouf » Sat Mar 02, 2019 10:08 pm

airsoftsoftwair wrote:
Sat Mar 02, 2019 8:59 pm

Code: Select all

- Fix: Wrong touch to mouse offset mapping when using "FullScreenScale" mode on Android
Cool waiting :)
You can actually compile an applet specifically for Android or iOS by doing the following:

Code: Select all

Hollywood test.hws -compile testandroid.hwa -exetype android
Hollywood test.hws -compile testios.hwa -exetype ios
If you use "android" or "ios" instead of "applet", Hollywood will compile an applet but it will set the platform-specific constants for Android or iOS, e.g. #HW_ANDROID. See here.
A) still do not work !
B) this option SHOULD exist in IDE while compiling applet, like compile APPLET, Compile Android APPLET etc
maybe i will never discovery it ! and it is not easy to use anyway !

OOT why quoting for ios ? is there a way to run it under ios ?

User avatar
airsoftsoftwair
Posts: 2832
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: player for Android8 SCALEMODe_AUTO

Post by airsoftsoftwair » Sun Mar 03, 2019 12:53 pm

plouf wrote:
Sat Mar 02, 2019 10:08 pm
A) still do not work !
Works here, *minimal* test script please.
B) this option SHOULD exist in IDE while compiling applet, like compile APPLET, Compile Android APPLET etc
Might be worth an addition...
OOT why quoting for ios ? is there a way to run it under ios ?
Currently not, but this year there'll probably some good news for iOS users :)

plouf
Posts: 39
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: player for Android8 SCALEMODe_AUTO

Post by plouf » Sun Mar 03, 2019 5:44 pm

command

hollywood test.hws -compile test.hwa -exectype android

script

Code: Select all

@IF #HW_ANDROID

	SystemRequest("test","android","ok")
@ELSE

	SystemRequest("test","no droid","ok")
@ENDIF

User avatar
airsoftsoftwair
Posts: 2832
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: player for Android8 SCALEMODe_AUTO

Post by airsoftsoftwair » Mon Mar 04, 2019 9:57 pm

You are using the wrong command line, it is EXETYPE not EXECTYPE, i.e.

Code: Select all

hollywood test.hws -compile test.hwa -exetype android

Post Reply