145684 Commits

Author SHA1 Message Date
Lars Sundström
8466e036b5 IOS7: Update touch mode when swiping two fingers right
The ability to change touch mode between touchpad emulation and
"direct" mouse mode is kept. Inform the user about the updated
mode change and update the on-screen control button to reflect
the new mode which is useful when the on-screen controls are
disabled.
2023-10-11 06:28:03 +02:00
Lars Sundström
a490768622 IOS7: Refactor touch event functions
Remove the deprecated events and their corresponding functions.
2023-10-11 06:28:03 +02:00
Lars Sundström
cc499d560e IOS7: Only handle one touch for mouse movements
The callback functions touchesBegan, touchesMoved and touchesEnded
are from now only used for mouse pointer movements. Only one touch
is then required to be tracked.

Disable multi-touch in view to accomplish this. The setting does
not affect the gesture recognizers attached to the view, only the
touchesBegan, touchesMoved and touchesEnded callbacks are affected
that only the actions for the first touch in view are sent.
2023-10-11 06:28:03 +02:00
Lars Sundström
b2ba581917 IOS7: Remove old touch to mouse button translations
Remove the old translations from touch events to mouse button events.
These have been replaced with UIGestures.
2023-10-11 06:28:03 +02:00
Lars Sundström
4dae507f14 IOS7: Add UIGestures for left and right mouse clicks
On a touch based device the touches made must be translated to
different mouse events. For example when a touch starts and is
moved that should translate to a mouse pointer movement. A quick
tap should be translated to a mouse button click while holding a
touch for a longer time without movement should be translated to
that the mouse button is kept pressed.

Add UIGestures to replace the current mouse button handling, all
done using the callback functions touchesBegan, touchesMoved and
touchesEnded.

A tap gesture with one finger is a left mouse click

A tap gesture with two fingers is a right mouse click

A long press gesture with one finger is holding the left mouse
button down until the press is released. This is accomplished by
sending an button down event when the gesture is recognized and
changes state to UIGestureRecognizerStateBegan.
A button up event is sent when the same gesture changes state to
UIGestureRecognizerStateEnded.

A long press with two fingers is as above but for the right mouse
button.

This commit adds the gestures and their actions. The current
mouse button handling is removed in upcomming commit.
2023-10-11 06:28:03 +02:00
Matthew Jimenez
32e2a5b420 ULTIMA8: Fix build 2023-10-10 20:38:31 -05:00
Matthew Jimenez
2620f50339 ULTIMA8: Refactor valid position checking 2023-10-10 19:55:34 -05:00
Walter Agazzi
98851e24da AGS: Add detection for several missing itch.io games 2/2
Thanks to TheTMD for finding most of these
2023-10-11 00:23:52 +02:00
Walter Agazzi
47b6b84391 AGS: Add detection for several missing itch.io games 1/2
Thanks to TheTMD for finding most of these
2023-10-11 00:23:52 +02:00
Sven Killig
51bdc2f9a8 DOCS: Use env var for Windows screenshot path 2023-10-10 23:05:28 +01:00
Thierry Crozat
04a7fa9d4b CREATE_PROJECT: Add missing classicmacfonts.dat in Xcode solution 2023-10-10 22:59:12 +01:00
ScummVM-Translations
4c168b9147 I18N: Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: ScummVM/scummvm
Translate-URL: https://translations.scummvm.org/projects/scummvm/scummvm/
2023-10-10 21:55:26 +00:00
Eugene Sandulenko
17a480f1c5
NANCY: Fix potentially uninitialized variable 2023-10-10 23:55:06 +02:00
IlDucci
6293c4c5b8 I18N: Update translation (Spanish)
Currently translated at 100.0% (2008 of 2008 strings)
2023-10-10 21:24:13 +00:00
ScummVM-Translations
6fd8eaa449 I18N: Update translations templates 2023-10-10 21:24:02 +00:00
Eugene Sandulenko
ac388673e9
GRAPHICS: MACGUI: Fix table width computation in MacText 2023-10-10 23:23:39 +02:00
Eugene Sandulenko
ed923ba26d
BASE: Add commented out dumping of all GUI dialogs 2023-10-10 23:23:35 +02:00
Purple T
b6d211c370 I18N: Update translation (French)
Currently translated at 100.0% (2008 of 2008 strings)
2023-10-10 20:49:26 +00:00
ScummVM-Translations
5877c29a86 I18N: Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: ScummVM/scummvm
Translate-URL: https://translations.scummvm.org/projects/scummvm/scummvm/
2023-10-10 19:49:33 +00:00
AndywinXp
b1950ac1b7 SWORD1: Avoid nullptr access 2023-10-10 21:49:16 +02:00
ScummVM-Translations
9a3a4f8bda I18N: Update translations templates 2023-10-10 18:56:00 +00:00
Lars Sundström
857b7553aa IOS7: Don't suspend the application in iOS when pressing menu
The Apple guidelines for Apple TV tells that when pressing the menu
button from the root view the user shall be brought to the "Home"
screen, suspending the app. Prevent this to be done in iOS.
2023-10-10 20:55:48 +02:00
Lars Sundström
f6585ae5f5 IOS7: Disable SCUMMVM_NEON in iOS builds
Due to the current graphic problems when enabling the NEON
optimisations, disable it for the iOS port until the problems
have been fixed.
2023-10-10 20:55:48 +02:00
Lars Sundström
a2de9b0b4e IOS7: Handle HW keyboards better when using "Stage Manager"
When having a hardware keyboard connected to the iOS device the
software keyboard is not shown. However when using stage manager
the notification that the keyboard is shown is still triggered.
This results in that the game screen is resized even though no
keyboard is visible in the area below.

This is some kind of workaround for that where a check for any
connected hardware keyboard is made. If a keyboard is connected
then the screen is not resized, except if the accessory bar should
be shown. In that case the screen is resized only for the height
of the accessory bar.
2023-10-10 20:55:48 +02:00
Lars Sundström
40f382cace IOS7: Make it possible to toggle alphabetical <-> numpad keyboard
Some games have some actions mapped to the numeric keyboard, e.g.
Indiana Jones and the last crusade fight scenes.
The alphabetical keyboard doesn't have the numeric button row so
it's a bit tricky to play these scenes without holding the "number
button switch" at the same time you need to press the correct number
button being showed.

Make it possible to switch between an alphabetical keyboard layout
to a numpad layout by adding a button to the toolbar.
2023-10-10 20:55:48 +02:00
Lars Sundström
316352e868 IOS7: Toggle keyboard with on-screen control button
Add a long press gesture to the touch mode control button, which
when triggered, shows the keyboard. The image of the UI button
changes to the keyboard image asset as long as the keyboard is
visible. If pressing the touch mode control button while the
keyboard is visible it will dismiss the keyboard.

The updates of the on-screen button image is done in the general
"showKeyboard" and "hideKeyboard" functions which makes sure that
the button image is updated also if showing/hiding of the keyboard
is triggered by the OSystem callback.
2023-10-10 20:55:48 +02:00
Lars Sundström
00296153df IOS7: Add on-screen controls visibility configuration
Make it possible to configure the visibility of the on-screen control
buttons. If configured to not be shown both buttons are hidden and
disabled.
2023-10-10 20:55:48 +02:00
Lars Sundström
324569f206 IOS7: Add on-screen controls as UI buttons
Add two UI buttons which are placed to the top right corner over
the main view. The left button controls the current touch mode.
When pressed the button changes image to represent the new touch
mode using the mouse and touchpad assets added in previous commit.

The right button triggers the call to the main menu.
2023-10-10 20:55:48 +02:00
Lars Sundström
ac98432429 DISTS: IOS7: Add touch mode assets
The Android backend have two on-screen controls. One for configuring
the touch mode setting and one for accessing the main menu.
The on-screen controls are presented as two clickable buttons.
The image of the touch mode setting changes depending on which mode
that is configured.

Add the same images as assets to the iOS port. Unfortunately it's
not possible to share the same resource files becuase the assets
in Android are of type Android vector drawable.
iOS can handle vector based images, but only in form as a PDF.
There's a lot to read about this format but luckily there are free
converter tools between the formats.

Add converted versions to the iOS7 port.
2023-10-10 20:55:48 +02:00
Lars Sundström
a705235d1a IOS7: Add touch mode configurations in menu, 2D & 3D games
In the Android port it's possible to configure differnet touch modes
in ScummVM menus, 2D games and 3D games. Add the same possibility in
the iOS port. In Android it's possible to configure a touch based
game controller as well. That's not in scope for iOS in this commit
but can be added in the future.
2023-10-10 20:55:48 +02:00
Lars Sundström
8e9f54ad32 IOS7: Refactor touchpadModeEnabled to a TouchMode
Change the boolean parameter indicating if "touch mode" is enabled
or not to an enum which could contain several different touch modes.
2023-10-10 20:55:48 +02:00
Lars Sundström
2971029301 IOS7: Configure directional elements on virtual controller
The virtual controller can be configured with different directional
elements. A thumbstick button and Dpad buttons (left, right, down,
up) can be configured.
A user might want to configure which directional element they want
on the virtual controller. Create two different virtual controllers
which can be switched between depending on the setting in the
backend specific option dialog.
2023-10-10 20:55:48 +02:00
Lars Sundström
ee4319beb3 IOS7: Rename option "onscreen_controls" to "gamepad_controller"
The onscreen_controls options should refer to the touch mode setting
and main menu buttons as it's done in the Android backend. The
virtual gamepad controller used the onscreen_controls string to
identify the option. Change the identifier string to
gamepad_controller so onscreen_controller can be used for the buttons
to be added to the iOS backend.
2023-10-10 20:55:48 +02:00
Lars Sundström
fac56ff37d IOS7: Fix position of virtual gamepad controller
With the release of iOS 17 the fix for adjusting the position of
the virtual controller stopped working. On some devices with so
called safe areas, the action buttons could be placed outside the
screen.

Rework the fix to position the GCControllerView layer instead.
2023-10-10 20:55:48 +02:00
ScummVM-Translations
be645311e0 I18N: Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: ScummVM/scummvm
Translate-URL: https://translations.scummvm.org/projects/scummvm/scummvm/
2023-10-10 17:15:05 +00:00
grisenti
93a03242e3 HPL1: Fix environment reflect shader 2023-10-10 19:14:17 +02:00
VAN-Gluon
db9960830b I18N: Update translation (Japanese)
Currently translated at 100.0% (2005 of 2005 strings)
2023-10-10 07:41:23 +00:00
Marcel Souza Lemes
c8e46bdecc I18N: Update translation (Portuguese (Brazil))
Currently translated at 100.0% (2005 of 2005 strings)
2023-10-10 07:41:21 +00:00
ScummVM-Translations
1fb63b2290 I18N: Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: ScummVM/scummvm
Translate-URL: https://translations.scummvm.org/projects/scummvm/scummvm/
2023-10-09 23:46:38 +00:00
Eugene Sandulenko
fa3883c86e
GRAPHICS: MACGUI: Initial attempt to render tables in MacText 2023-10-10 01:45:36 +02:00
IlDucci
1d5fd85989 I18N: Update translation (Spanish)
Currently translated at 100.0% (2005 of 2005 strings)
2023-10-09 21:31:37 +00:00
ScummVM-Translations
fb0a425b82 I18N: Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: ScummVM/scummvm
Translate-URL: https://translations.scummvm.org/projects/scummvm/scummvm/
2023-10-09 21:27:38 +00:00
grisenti
16f5a32a3a HPL1: Add workaround for sliding door bug 2023-10-09 23:27:12 +02:00
Purple T
e6b43960f4 I18N: Update translation (French)
Currently translated at 100.0% (2005 of 2005 strings)
2023-10-09 20:55:30 +00:00
ScummVM-Translations
bce1a0c011 I18N: Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: ScummVM/scummvm
Translate-URL: https://translations.scummvm.org/projects/scummvm/scummvm/
2023-10-09 20:46:14 +00:00
Benjamin Funke
a60069a77f
GOB: Added version numbers to lit & playtoons game entries 2023-10-09 23:45:58 +03:00
ScummVM-Translations
afd6c4f288 I18N: Update translations templates 2023-10-09 20:04:35 +00:00
ScummVM-Translations
c1aead2a92 I18N: Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: ScummVM/scummvm
Translate-URL: https://translations.scummvm.org/projects/scummvm/scummvm/
2023-10-09 20:04:33 +00:00
Thierry Crozat
cbf3daf4ab GUI: Fix missing Download buttons in classic theme layout
This made it impossible to switch to the Classic theme when DLC
are enabled.
2023-10-09 21:04:08 +01:00
Thierry Crozat
8f9cdff4a7 GUI: Add function in GuiManager to query if low-res GUI should be used
The same condition was scattered around in the code to switch between
normal labels and images and their lowres counterparts. Factorizing
that condition in a function will allow changing it easily.
2023-10-09 21:04:08 +01:00