Commit Graph
591 Commits
Author SHA1 Message Date
Le Philousophe 298c970fca ANDROID: Hide on-screen buttons while native code is not started 2024-04-13 19:16:55 +02:00
Le Philousophe aa406ba5f3 ANDROID: Don't display burger menu when in launcher 2024-04-13 19:16:55 +02:00
Le Philousophe 311f5ce493 ANDROID: Make on screen icons depend on screen orientation 2024-04-13 19:16:55 +02:00
Le Philousophe 92204097d6 ANDROID: Rename showKeyboardControl to showOnScreenControls
This matches what the function really do: hide input method and main
menu icons
2024-04-13 19:16:55 +02:00
Le Philousophe 27c7572bd7 ANDROID: Get HiDPI density from Android metrics 2024-01-24 21:53:07 +01:00
Eugene Sandulenko 00440cfe86 HELP: Added explanation what ScummVM is and where to get help for Android and iOS 2023-12-26 15:21:23 +01:00
Le Philousophe a38a3eea01 ANDROID: Add bundle build method 2023-12-24 16:18:31 +01:00
Le Philousophe 9bdf1233b1 BACKENDS: Migrate to Path API 2023-12-24 13:19:25 +01:00
Le Philousophe db41390587 BACKENDS: Make browser_lastpath a Path object 2023-12-24 13:19:25 +01:00
Le Philousophe db5041ecb0 COMMON: Make savepath a Path object 2023-12-24 13:19:25 +01:00
Le Philousophe dc7fadef28 COMMON: Make iconspath a Path object 2023-12-24 13:19:25 +01:00
Le Philousophe 01ebece807 COMMON: Make getDefaultConfigFileName return a Path instead of a String 2023-12-24 13:19:25 +01:00
Le Philousophe d9a8131ba2 COMMON: Make getDefaultLogFileName return a Path instead of a String 2023-12-24 13:19:25 +01:00
Lars Sundström 9d39902368 ANDROID: Update backend options widget layout
Since the default layout don't add padding, add necessary padding in
backend instead.
2023-12-16 19:37:33 +01:00
Le Philousophe 742bed351a ANDROID: Make application quit even when the application is hidden
Without this, when the application is in background, it is stuck waiting
for threads to join.
This is handful when, for example, there is an error while the
application got in background.
2023-12-10 17:39:46 +01:00
Le Philousophe 9261583788 ANDROID: Check if MotionEvent is set before using it
e1 can be null in case of error according to documentation.
Don't trigger an event in this case.
2023-12-10 12:33:34 +01:00
Le Philousophe 5c98796889 ANDROID: Kill ourselves if the main thread failed to join
This should avoid the infamous assertion fault with _system not being
null.
2023-12-09 23:28:48 +01:00
Thierry Crozat 95a060e4fe AUDIO: Add a basic soundfont for fluidsynth
The soundfont was already included in the Libretro port. It is
now included in all platforms.
2023-12-03 16:17:32 +00:00
Eugene Sandulenko 90bd56e409 BUILD: Added fonts-cjk.dat to selected platforms
So far, it was added to all modern desktops, Android, iOS and Switch
2023-11-20 20:59:17 +01:00
Eugene Sandulenko 58eedff7d1 ANDROID: Adjusted image sizes in help text 2023-11-01 00:24:11 +01:00
CadiH 7e41bec7f0 BACKENDS: ANDROID: minor edit to Help tab contents 2023-10-06 22:24:55 +02:00
CadiH 5df0851284 BACKENDS: ANDROID: updates contents of help dialog 2023-10-06 22:24:55 +02:00
CadiH a74c827076 BACKENDS: ADNROID: Updates content of help tab 2023-10-06 22:24:55 +02:00
Eugene Sandulenko 3cfcdd5d6f ANDROID: Add missing include 2023-09-17 14:39:58 +02:00
Eugene Sandulenko 2bea791278 OSYSTEM: Improed const'ness of the buildHelpDialogData() call 2023-09-17 00:56:28 +02:00
Eugene Sandulenko a14b2bf9ba ANDROID: Added andriod-help.zip to the bundle 2023-09-17 00:56:28 +02:00
Eugene Sandulenko 7527757d6f BACKENDS: ANDROID: Move Android-specific HelpDialog tabs to backend 2023-09-17 00:56:28 +02:00
Ankush Dutt a26d00a2b7 DLC: Remove Playstore code 2023-09-14 08:22:56 +02:00
Ankush Dutt 2a60a4d213 DLC: Set kFeatureDLC and _dlcStore for ScummVMCloud, Playstore in backend 2023-09-14 08:22:56 +02:00
Ankush Dutt 045a99e50c BACKENDS: Remove platform-specific defines and enforce factory design pattern for creating DLC store 2023-09-14 08:22:56 +02:00
Ankush Dutt 99af2be9c0 BACKENDS: Initial implementation of Android PlayStore DLC Manager 2023-09-14 08:22:56 +02:00
Ankush Dutt 6e8bdee909 BACKENDS: Add initial code for DLC Manager 2023-09-14 08:22:56 +02:00
antoniou79 9f4a32f88b ANDROID: Remove hack for virtual keyboard arrow key repeats
This hack was simulating repeated key presses (EVENT_KEYDOWN, then EVENT_KEYUP) for the arrow keys like the ones a physical keyboard sends

The hack could potentially cause further issues like spamming the events queue with many unnecessary events, and sending the events too quickly for some engines to handle
(thus missing some of them). We're now making use of the allowKbdRepeats() for the Up/Down/Left/Right event actions in the gui-manager, which will handle the case of a key
being kept pressed, sending an initial EVENT_KEYDOWN event and then subsequent EVENT_KEYDOWN events with the kbdRepeat flag set, and finally a single EVENT_KEYUP in the end.
Android itself handles repeated key events similarily (instead of a kbdRepeat flag, it updates a counter for the key repeats, which we translate to a simple flag).

This (and the hack that this replaces) affect things like moving the selection in the GUI lists (like the added games list) upwards or downwards continuously
while keeping the respective arrow key from the Android virtual keyboard pressed down.
2023-08-29 04:30:00 +03:00
Thierry Crozat ef7c881416 OSYSTEM: Add kFeatureTouchscreen to identify backends with a touchscreen 2023-08-22 23:37:11 +01:00
antoniou79 554f094dd6 ANDROID: Improvements for controller movement detection
Removed unnecessary normalization as Android already does this

Also fixed a wrong comparison in a clause for deciding to stop movement that was repeating
2023-08-13 23:25:18 +03:00
Le Philousophe 79c3063979 ANDROID: Improve CPU detection
CPU architecture can be determined at build time.
Add support for x86 extensions.
2023-08-13 12:58:45 +02:00
Le Philousophe 3b1465120a ANDROID: Fix build
cpu-features needs to be compiled by us
2023-08-13 12:58:45 +02:00
Wyatt Radkiewicz 787837ca41 ALL: Add Cpu prefix to SIMD extension features 2023-08-13 00:22:10 +02:00
Wyatt Radkiewicz bdc6d72e0b ANDROID: Added ARM NEON detection in backend init 2023-08-13 00:22:10 +02:00
antoniou79 a674b65c95 ANDROID: Support connection change for some bluetooth keyboards
Some bluetooth keyboards also need "navigation" supported as configuration change

Tested with a new Lamtech bluetooth (BLE5) keyboard and also this is suggested here as well:
https://stackoverflow.com/a/27238892
2023-08-12 20:34:58 +03:00
antoniou79 b347be081c ANDROID: Support two finger touch mouse wheel 2023-08-11 16:52:06 +03:00
antoniou79 ba815489f8 ANDROID: Add delay for jump move and mouse down in direct multitouch
This fixes right click and hold behavior to choose a verb action from the "verb coin" in tony tough

Previously, in direct touch mode, the action selected would refer to the previous item that was under the cursor
before the jump to the new touch point.
2023-08-11 16:52:06 +03:00
antoniou79 fbf91a4b28 ANDROID: Add another delay (move to button down) for direct touch mode
Some engines seems to also expect such a delay (tested with Curse of Monkey Island and Tony Tough).

Without this added delay, direct touch mode would work ok in the launcher and GMM GUI but in-game there would be issues.
In Curse of Monkey Island, early difficult selection screen, it was not possible to select the difficulty with a simple tap (direct touch mode).
And in gameplay proper, a simple tap would move the cursor to the touched position but Guybrush would walk to the last position of the cursor (before it jumped to the new one)
Tony Tough had similar issues with its menu.
2023-08-08 10:56:53 +03:00
antoniou79 7959c431aa ANDROID: Make virtual keyboard arrow keys similar to physical
Basically treats the arrow keys from the virtual keyboard in a special manner

It translates them to KEYCODE_UP(/DOWN/LEFT/RIGHT) and if held down sents consecutive KEYUP / KEYDOWN events
instead of the previous behavior of setting the kbdRepeat flag and just sending repeated KEYDOWN events and one final KEYUP.
Previous behavior would result in poor navigation on lists when the arror keys were held down. The new system works better.
2023-08-07 17:31:02 +03:00
antoniou79 95f1ca2847 ANDROID: Fix double tap and right click hold for direct mouse mode
Also re-work slightly the system for handling the delayed mouse up touch event
2023-08-07 17:31:02 +03:00
antoniou79 3bb60278d6 ANDROID: JANITORIAL: Fix formatting 2023-08-07 17:31:01 +03:00
elasota 88fcfad6ca BACKENDS: ANDROID: Fix build 2023-07-20 19:07:20 +02:00
Le Philousophe 538fd65ed6 ANDROID: Make 3 fingers multitouch easier to trigger
We can receive a move event while having two fingers pressed but this
doesn't always mean we really moved.
2023-07-14 20:53:35 +02:00
Le Philousophe a58bac8ccb ANDROID: Avoid calling native code from UI thread
This can lead to race conditions.
When synchronizing virtual keyboard state, just set a variable in UI
thread.
The variable will be read in worker thread during event polling, this
will ensure that graphics code is configured at a proper time.
2023-07-14 11:22:06 +02:00
antoniou79 8e6be2beec ANDROID: Don't trigger haptic feedback on double tap 2023-07-11 18:15:54 +03:00