Commit Graph
137148 Commits
Author SHA1 Message Date
Lars Sundström f18305e715 IOS7: Add support for Joystick actions in GameController
Joystick actions are suitable for joysticks and gamepads where the
movements are updated by a controller stick. On gamepads that's usually
a thumbstick.

Add joystick events which can be triggered by each implemented
controller that should utilize the ScummVM Joystick events.
2022-08-08 21:08:56 +01:00
Lars Sundström c3513a151e IOS7: Add Mouse support using GameController framework
Add support for mouses using the GameController framework. This requires
iOS 14 and up. The trackpad on the magic keyboard to iPads is connected
as a mouse and of course other connected mouses.

The mouse movements triggers calls to the mouseMovedHandler code
block. The calls delivers delta movements on the X and Y axis from the
last pointer position. It doesn't keep track on where the pointer is in
the view. That's where pointerPosition property in the iPhoneView comes
into place.
2022-08-08 21:08:56 +01:00
Lars Sundström db2e15b3f1 IOS7: Factor out touch pointer handling to TouchController class
Move touch inputs to a TouchController class to move some logic from the
iPhoneView class. Only do this for touches on screen since connected
trackpads can generate touches as well. The latter ones are of type
UITouchTypeIndirectPointer while touches on screen are of type
UITouchTypeDirect. They are separated thanks to the preference key
UIApplicationSupportsIndirectInputEvents set to YES in Info.plist.
Without the preference above, there is no way to distinguish touches
from screen from a trackpad.
2022-08-08 21:08:56 +01:00
Lars Sundström 15507ebc50 IOS7: Add GameController base class
Add a GameController base class which handles user inputs from a
controller. The input is either a pointer move or a button action.
If the input is a pointer move, make sure that the move is within
valid coordinates in the game (respecting the resolution which is
most probably lower than the view resolution).
2022-08-08 21:08:56 +01:00
Lars Sundström 877d1ffa67 IOS7: Add pointerPosition property to iPhoneView class
Let the view keep the current pointer position as a property, allowing
it to be modified by controllers.
2022-08-08 21:08:56 +01:00
Lars Sundström 6387046666 IOS7: Make iPhoneView addEvent and getMouseCoords functions public
Squash with the one above
2022-08-08 21:08:56 +01:00
Lars Sundström f8604faf41 IOS7: Set view controller's preference to lock the pointer
Setting this property to true indicates the view controller’s preference
to lock the pointer, although the system may not honor the request.

For the system to consider locking the pointer:
The scene must be full screen, not in Split View or Slide Over, with no
other apps in Slide Over.
The scene must be in the UISceneActivationStateForegroundActive state.

The ScummVM iOS7 client fulfills the above so the pointer is locked.
Locking the pointer hides the OS cursor (the dot), however that's wanted
since the ScummVM engine draws its own pointer.
2022-08-08 21:08:56 +01:00
Lars Sundström 4133cf4b9f IOS7: Add GameController capability
Add the GameController framework to the project and enable support for
controller user interaction in the Info.plist file. This allows for
Game Controller compatible devices to notify the application when
connected.

Add GameController framework to configure and ports.mk if not using
Xcode to build the target.
2022-08-08 21:08:56 +01:00
Misty De Meo 0c09bba0f6 DIRECTOR: do not try to open dirs as files 2022-08-08 13:06:16 -07:00
Lothar Serra Mari b03ad83379 I18N: Update translation (German)
Currently translated at 100.0% (1775 of 1775 strings)
2022-08-08 12:28:43 +00:00
Donovan Watteau 7a4f09504a SCUMM: Quote Aric Wilmunder as to why the cliff puzzle was disabled in Monkey2 Towns
It appears that this was disabled on FM-TOWNS because of a vertical scrolling
limitation, but it appears to work fine, nonetheless. This is also what they
observed while doing the QA for the original PC version, and so they enabled
it again there.

Sources (with also some words from Dave and Tami!):

https://twitter.com/AWilmunder/status/1553827430699192320
https://www.timeextension.com/features/how-we-helped-solve-a-30-year-old-mystery-in-monkey-island-2-lechucks-revenge
2022-08-08 12:15:19 +02:00
ScummVM-Translations a87650fd28 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/
2022-08-08 09:54:13 +00:00
Eugene Sandulenko 98ae23913e I18N: Update translation (Ukrainian)
Currently translated at 100.0% (1775 of 1775 strings)
2022-08-08 09:54:07 +00:00
Eugene Sandulenko b9584ec7a2 I18N: Update translation (Russian)
Currently translated at 100.0% (1775 of 1775 strings)
2022-08-08 09:54:07 +00:00
Torbjörn Andersson 4451101b80 SCUMM: Restrict PC-Engine Loom loading screen delay to English version
The Japanese version shows only a blank screen, so it seems silly to
delay for that.
2022-08-08 11:53:59 +02:00
Torbjörn Andersson d51c9336b9 SCUMM: Add delay to "Turbo Technologies" PC Engine Loom loading screen
The original gets its delay - about 10 seconds, judging by the emulator
I tried - by loading resources. ScummVM does that in the blink of an
eye. Of course, we don't want the full delay. Just a tasteful one.
2022-08-08 11:53:59 +02:00
Marcel Souza Lemes 4090612fd7 I18N: Update translation (Portuguese (Brazil))
Currently translated at 100.0% (1775 of 1775 strings)
2022-08-08 09:37:27 +00:00
Misty De Meo 91bea3c973 DIRECTOR: add Secret Writer's Society 2022-08-07 21:40:38 -07:00
elasota e909861527 MTROPOLIS: Fix unrestricted unions still using memset 2022-08-07 22:06:18 -04:00
eientei 4dac7b3f20 MACVENTURE: Add more Mac and IIGS versions to detection 2022-08-08 04:52:27 +03:00
Eugene Sandulenko 7d4d135b99 COMMON: Add sanity checks to MacResManager::readMap() 2022-08-08 02:06:08 +02:00
Eugene Sandulenko 74c253bef8 COMMON: Some programs store AppleDouble files in *.rsrc. Check for that 2022-08-08 02:05:06 +02:00
Lothar Serra Mari 0bde2bcaff NEWS: Mention original GUI for COMI in German NEWS file 2022-08-07 23:21:52 +02:00
Eugene Sandulenko efe78270a7 NEWS: Added missing full stop 2022-08-07 23:19:19 +02:00
Eugene Sandulenko 88ba6b7c19 NEWS: Mention COMI original GUI support 2022-08-07 23:17:49 +02:00
athrxx fc3845a593 SCUMM: (COMI/CJK) - fix font glitch
It seems to affect only the GUI (but that may be random). We need to extend the string rect by 1 pixel for the left side shadow of the first character.
2022-08-07 22:39:39 +02:00
Cameron Cawley 3b3be12dcb ULTIMA: Replace Std::stack with Common::Stack 2022-08-07 22:57:05 +03:00
ScummVM-Translations d525bf3065 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/
2022-08-07 19:51:11 +00:00
Walter Agazzi 6014af60c5 AGS: Add detection for newer Technobabylon and Golden Wake 2022-08-07 22:50:59 +03:00
Walter Agazzi c62ec75f47 AGS: Add kq4 retold 1.0.4 versions 2022-08-07 22:50:59 +03:00
Walter Agazzi 0c7eb8dbcf ACHIEVEMENTS: Generated description files 2022-08-07 22:50:59 +03:00
Walter Agazzi 3845c3c15d ACHIEVEMENTS: Add values for new AGS steam/gog games 2022-08-07 22:50:59 +03:00
Walter Agazzi 10a17e42e5 AGS: Add new versions of commercial games, minor fixes 2022-08-07 22:50:59 +03:00
ScummVM-Translations 97d82b9fdb I18N: Update translations templates 2022-08-07 19:45:18 +00:00
Henrik "Henke37" Andersson f668e4a612 SCUMM: This engine provides custom help 2022-08-07 22:45:07 +03:00
Henrik "Henke37" Andersson 60ca37a810 GUI: Only enable help button when supported 2022-08-07 22:45:07 +03:00
Henrik "Henke37" Andersson ef50d7e3a7 ENGINES: Have engines declare if they provide custom help. 2022-08-07 22:45:07 +03:00
athrxx 6373dd1ffb SCUMM: (COMI/CJK) - fix GUI font
It it supposed to be drawn without outline for text color 0 (applies to COMI, only).
2022-08-07 20:10:00 +02:00
antoniou79 91fb74486f BLADERUNNER: CUTCONTENT: Skip Runciter quotes 1670 and 1680 in DEU version 2022-08-07 20:59:51 +03:00
Purple T b1661c7741 I18N: Update translation (French)
Currently translated at 100.0% (1775 of 1775 strings)
2022-08-07 17:37:26 +00:00
athrxx 692685bb40 SCUMM: extend fix 36a5571 to all v4 targets
(the code for the calculation of the y pos seems to be exactly the same)
2022-08-07 18:57:04 +02:00
athrxx 36a5571170 SCUMM: (MI1 - EGA/VGA) - fix bug no. 13762 (Inaccurate text position)
This concerns only the vertical positioning, not the wrapping. Currently, I have limited it to MI1 EGA and VGA.
2022-08-07 18:22:52 +02:00
Le Philousophe 8829a9b4c0 VITA: Remove the now useless alternative targets 2022-08-07 18:15:09 +02:00
Le Philousophe f925c14971 VITA: Move link optimizations at the end of configure 2022-08-07 18:15:09 +02:00
Le Philousophe 2a84d3e988 VITA: Add plugins support 2022-08-07 18:15:09 +02:00
Donovan Watteau 4ec06a2bf6 SCUMM: Unify WORKAROUND usage and complete/tweak some of them 2022-08-07 17:24:27 +02:00
Walter Agazzi 6bd7a4cc14 I18N: Update translation (Italian)
Currently translated at 100.0% (1775 of 1775 strings)
2022-08-07 09:19:47 +00:00
ScummVM-Translations f5b8673280 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/
2022-08-07 06:32:40 +00:00
AndywinXp eb2df1a355 SCUMM: Set default value for _useOriginalGUI to true
Every access to this variable is done through isUsingOriginalGUI(), which
will currently yield false for every game version lower than 8.
2022-08-07 08:32:25 +02:00
ScummVM-Translations 80140d6a9c I18N: Update translations templates 2022-08-06 21:33:25 +00:00