Commit graph

3583 commits

Author SHA1 Message Date
antoniou
0a7dd239e7 ANDROID: Added a note comment about scummvm.ini location
Location is directly inside the app's internal storage folder

I am not sure if I did this by mistake, because I think it would be better for it
to be under the subpath ".config/scummvm" which we do create earlier.
However, this *mistake* makes the file easier accessible via the "LAN" feature,
since otherwise the user has to also enable the "show hidden files" option
and navigate specifically to the ".config/scummvm" subpath
to set it as root for the LAN server, in order to see the scummvm.ini.
In the current way, the user simply has to set the internal app folder
as root for the LAN server.
2020-11-13 10:48:00 +02:00
antoniou
de9aa236d7 ANDROID: Raise targetsdk to 29 but make use of requestLegacyExternalStorage
Also some fixes for deprecated warnings
2020-11-07 23:57:56 +02:00
antoniou
1bef1b984b ANDROID: Use TextUtils.isEmpty() instead of String's isEmpty() 2020-11-07 23:57:05 +02:00
antoniou
a268998f91 ANDROID: Callback for onDestroy at ScummVM thread end 2020-11-07 23:57:05 +02:00
antoniou
346dde1130 ANDROID: Use SAF for folder and file creation when normal way fails
Should affect only external "secondary" storage (eg. physical SD card)
2020-11-07 23:57:05 +02:00
antoniou
1fc4fa8e1f ANDROID: A tentative handling of handling joystick control
Basically as a virtual mouse
2020-10-25 02:37:26 +03:00
antoniou
ddc0e26fbf ANDROID: Handle repeating keys for virtual keyboard 2020-10-24 16:05:03 +03:00
antoniou
ec703bd4de ANDROID: use gradle's auto-align and set debuggable to false for release builds
There were issues with manually aligning apks possibly  due to upgrading gradle

The manual zipalign even though running with no fail message, would NOT align the apk properly anymore.
Command to manual verify alignment of an apk is:
Android/Sdk/tools/bin/zipalign -c -v 4 release/ScummVM-release-unsigned.apk
2020-10-18 12:58:44 +03:00
antoniou
9fae3f27de ANDROID: Do not use or show virtual keyboard when physical is connected
The toggle button will still be shown, but it won't show the in-app keyboard when pressed, unless the physical keyboard is disconnected
2020-10-17 22:03:40 +03:00
antoniou
055919af67 ANDROID: Fix crash when connecting or disconnecting physical keyboard
And also add some code to load and use the keyCharacterMap of the source device for the event

It is unclear if getUnicodeChar() already does this (loads the keyCharacterMap of the source device.
If it does, then the extra code is redundant.
2020-10-17 22:03:31 +03:00
antoniou
eeb83a6e28 ANDROID: Fix shifted keys and key combos 2020-10-17 19:22:02 +03:00
antoniou
a8fd0dc67b ANDROID: Remove keyUp and keyDown overrides from EditSurfaceView
They were causing some nasty loops with certain keys and are largely redundant since we already had a events manager for keys
2020-10-16 21:47:09 +03:00
antoniou
fc5e0c8b98 ANDROID: Set flag to leep screen on 2020-10-16 20:30:14 +03:00
antoniou
b3f454ce9f ANDROID: Merge ontouch from EditSurfaceView into ScummVMEventsBase
Also fix a bug with back button not removing the keyboard if it is shown without clicking on a text input field
2020-10-16 20:12:34 +03:00
Fiodar Stryzhniou
336aa5b196 SYMBIAN: sync with 2.2.0 release.
Added new project files, build fixes.
2020-10-16 17:06:33 +02:00
antoniou
7b6c184c29 ANDROID: Use gradle 6.7 and plugin 4.1.0
Also remove ndk.dir from local.properties since it is getting deprecated

Gradle will only use the info (ndkVersion) in gradle.build. Possibly ndkPath too, but we probably don't need that, since ndk is within the sdk folder (default location)
2020-10-15 19:14:13 +03:00
antoniou
acc8aad2ba ANDROID: Use a in-app keyboard instead of system
Keyboard was ported over from our SDL port which used https://github.com/pelya/commandergenius/tree/sdl_android/project

Pending optimizations, floatable/draggable implementation and a few bug fixes
We are using a local copy and slightly modified version of KeyboardView and Keyboard (and related resources).
since the android KeyboardView widget will be deprecated in API 29.
The copies are taken from the AOSP, as per the recommendation from Android Developers.
2020-10-15 18:39:24 +03:00
Cameron Cawley
6c9a005849 ANDROID: Minor cleanup 2020-10-15 13:43:25 +03:00
antoniou
7fb6dcbf6e ANDROID: Reduce lint warnings and offer more drawable sizes
Also slightly tweak position and size of keyboard icon
2020-10-13 14:10:08 +03:00
Alexander Reim
553539a269 WII: Return to the system menu instead of a black screen on exit 2020-10-11 11:56:40 +02:00
Alexander Reim
c7b02dae60 WII: Fix transparency of RGB cursors 2020-10-11 11:54:46 +02:00
antoniou
5e3dda78bc ANDROID: Replace deprecated methods and fix some Code analyze warnings 2020-10-10 15:20:49 +03:00
Cameron Cawley
6d68f2fe8b ANDROID: Use the input enums from the system headers 2020-10-09 07:58:52 +03:00
antoniou
5acba2df0c ANDROID: Correctly init config keys and reflect values on GUI
Also comments added about how this process works. Fixes bug #11743
2020-10-07 15:30:40 +03:00
antoniou
5f7842db57 ANDROID: Add external app path if available to search path 2020-10-04 20:29:14 +03:00
antoniou
ca637c4c29 ANDROID: Set AC_BACK to be the default map for Skip action
If Skip is not otherwise mapped by the game engine explicitly
2020-10-03 12:28:41 +03:00
antoniou
3f177b5d0d ANDROID: Reduce more Lint warnings
Unused resources, mem leak for event handler, overried View's performClick for accessibility
2020-10-02 19:53:06 +03:00
antoniou
61038133d0 ANDROID: Comment about related bug report for transient config options 2020-10-02 12:47:17 +03:00
antoniou
a51d3ccb4d ANDROID: Fix for buggy backspace behavior in TYPE_NULL inputType
Code taken from https://stackoverflow.com/a/19980975
2020-10-01 00:13:38 +03:00
antoniou
41bc8872d5 ANDROID: Send keys to app as they are typed
Fixes issue with bad system keyboard input to in-game fields
2020-10-01 00:13:26 +03:00
antoniou
685edfb24e ANDROID: Minor optimization in clause evaluation for bugfix for 2.2.1beta1 2020-09-30 20:58:05 +03:00
antoniou
fb266e6bcd ANDROID: Fix bug in 2.2.1 beta ignoring some config locations
This is a bug fix specific for 2.2.1 beta1

If an old config is found in the extra locations, it will be reused and replace the existing config. Also in that case, the extra locations will be scanned for saved games to copy to our default save location.
2020-09-30 20:07:30 +03:00
antoniou
de14e6764c ANDROID: Splash screen and additional locations to search for config and saves
The splash screen is an addition that was "forced" by the need to allow for permission granted to access external physical storage
2020-09-29 22:16:16 +03:00
antoniou
39c3c1466f ANDROID: Reduce Lint warnings 2020-09-29 22:16:05 +03:00
antoniou
fb6ab66cba ANDROID: Add comments and code to reinforce hiding of system cursor
For the case when an external mouse is connected to the device

The code still only fixes the issue for devices runnng Android 7.0 or newer
2020-09-27 21:07:41 +03:00
antoniou
0aa2c85331 KEYMAPPER: remap timeout (ms) can be set from config
Config key is "remap_timeout_delay_ms", min value is 3000
2020-09-27 21:07:28 +03:00
antoniou
b15b394f0c ANDROID: Comment out the logfile code
Since currently the logFile stuff are specific to SDL_BACKED
2020-09-24 14:18:09 +03:00
antoniou
d95066e04d ANDROID: Migrate old save files
More testing pending
2020-09-24 14:18:09 +03:00
antoniou
495420a027 ANDROID: Add internal app path to SearchSet
Also have it with higher priority than the Android's assets structure which is too slow

Fixes a bug whereby a large font.dat file was very slow to be accessed during launch (for the modern themes), due to it being accessed from the Assets rather than the file system
2020-09-24 14:18:09 +03:00
antoniou
aeeffa1e48 ANDROID: Remove unnecessary check for isFile in a sideUpgrade 2020-09-24 14:18:09 +03:00
antoniou
3edb4e3e58 ANDROID: Copy asset files in internal app folder 2020-09-24 14:18:09 +03:00
antoniou
7fe7f0c226 ANDROID: Revert chnage for long press AC_BACK handler
Huawei Android 9 seemed to not be working ok (or at all) with the change
2020-09-24 14:18:09 +03:00
antoniou
7c4f9df1a5 ANDROID: Upgrade to 2.3 version re-using any old configuration file 2020-09-24 14:18:08 +03:00
antoniou
d268cf28b9 ANDROID: Use custom handler for long key press detection
To avoid possible mem leaks (see "This Handler Class Should Be Static Or Leaks Might Occur” warning

Also a few optimizations based on recommendations from the Android Studio error highlighting/fix suggestions (F2)
2020-09-24 14:18:08 +03:00
antoniou
b4081e12b0 ANDROID: get version info (wip) and use androidx for annotations
Also androidx is replacing the Android Support library so it's best to use this one

According to https://developer.android.com/jetpack/androidx
AndroidX is a major improvement to the original Android Support Library, which is no longer maintained. androidx packages fully replace the Support Library by providing feature parity and new libraries.
AndroidX replaces the original support library APIs with packages in the androidx namespace. Only the package and Maven artifact names changed; class, method, and field names did not change.
2020-09-24 14:18:08 +03:00
Hubert Maier
276fe768f3 AMIGAOS: Indented comments are now supported
Since when i don´t really know, might be for some time. I just tried with the scummvm-tools .mk and they work as intended.
Hope i don´t break anything else
2020-09-18 01:22:26 +02:00
Eugene Sandulenko
3db7fe192e RELEASE: This is 2.2.1pre 2020-09-13 23:03:41 +02:00
Eugene Sandulenko
5d3fed88f7 GCW0: Disable GLK engine 2020-09-13 17:54:45 +02:00
Thierry Crozat
9b0b470987 IOS7: Do not overwrite user saves when saving state 2020-09-13 00:46:32 +01:00
Thierry Crozat
947db98d9b IOS7: Properly restore state when the process has been terminated 2020-09-13 00:46:32 +01:00