player for Android8 SCALEMODe_AUTO
player for Android8 SCALEMODe_AUTO
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
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
Christos
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: player for Android8 SCALEMODe_AUTO
Please provide a full test script that I can try here.
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?
Re: player for Android8 SCALEMODe_AUTO
i have mailed full script and applets
btw how to "compile" for android ?
you just "compile an applet" correct?
btw how to "compile" for android ?
you just "compile an applet" correct?
Christos
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: player for Android8 SCALEMODe_AUTO
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?
You can actually compile an applet specifically for Android or iOS by doing the following:btw how to "compile" for android ?
you just "compile an applet" correct?
Code: Select all
Hollywood test.hws -compile testandroid.hwa -exetype android
Hollywood test.hws -compile testios.hwa -exetype ios
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: player for Android8 SCALEMODe_AUTO
Code: Select all
- Fix: Wrong touch to mouse offset mapping when using "FullScreenScale" mode on Android
Re: player for Android8 SCALEMODe_AUTO
Cool waitingairsoftsoftwair wrote: ↑Sat Mar 02, 2019 8:59 pmCode: Select all
- Fix: Wrong touch to mouse offset mapping when using "FullScreenScale" mode on Android
A) still do not work !You can actually compile an applet specifically for Android or iOS by doing the following:
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.Code: Select all
Hollywood test.hws -compile testandroid.hwa -exetype android Hollywood test.hws -compile testios.hwa -exetype ios
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 ?
Christos
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: player for Android8 SCALEMODe_AUTO
Works here, *minimal* test script please.
Might be worth an addition...B) this option SHOULD exist in IDE while compiling applet, like compile APPLET, Compile Android APPLET etc
Currently not, but this year there'll probably some good news for iOS usersOOT why quoting for ios ? is there a way to run it under ios ?
Re: player for Android8 SCALEMODe_AUTO
command
hollywood test.hws -compile test.hwa -exectype android
script
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
Christos
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: player for Android8 SCALEMODe_AUTO
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
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: player for Android8 SCALEMODe_AUTO
Code: Select all
- New [IDE/GUI]: Added support for Android and iOS targets when compiling scripts; compiling for these
targets will yield applets that can be used with the Hollywood APK Compiler or Hollywood Player for
Android and Remedios for iOS but the difference from just compiling normal applets is that Hollywood
will set the #HW_ANDROID and #HW_IOS preprocessor keywords when compiling applets specifically for
Android or iOS