Commit graph

172 commits

Author SHA1 Message Date
antoniou79
077460788d ANDROID: Add Control tab for mouse pointer speed
and joystick deadzone. By supporting kFeatureKbdMouseSpeed and kFeatureJoystickDeadzone and registering default values

Both of these config settings (kbdmouse_speed, joystick_deadzone) factor in virtual mouse movement.

Helps handle virtual mouse pointer speed when controlled with DPAD or is too fast for the user
2023-04-02 22:49:34 +03:00
antoniou79
09ae3a1132 ANDROID: Treat DPAD keypresses as JOYSTICK_DPAD
Mapped by default to virtual mouse movement
2023-03-31 23:15:44 +03:00
antoniou79
098d8d6083 ANDROID: Remove redundant exceptions and comments 2023-03-26 14:04:46 +03:00
Antoniou Athanasios
767f70d595 ANDROID: Clean up log code and use Backends::Log 2023-03-26 13:49:24 +03:00
Antoniou Athanasios
b1eb46ed44 ANDROID: Write to a scummvm.log file 2023-03-26 13:49:21 +03:00
Le Philousophe
a56d26bff8 ANDROID: Fix GLES2 functions loading with EGL 1.4
With older EGL 1.4, functions from core OpenGL may not be resolved using
eglGetProcAddress. A fallback to dlsym is needed.
We still use eglGetProcAddress only on EGL 1.5+ because it is simpler
and faster.
2023-03-25 13:18:03 +01:00
antoniou79
c3fdd5a3fb ANDROID: Basic support for some TV remotes
And some fixes for DPAD handling

More fixes for DPAD will be coming. We currently don't handle DPAD Center, and also do not handle the case where DPAD is HATs (motion events)
2023-03-25 00:10:15 +02:00
Le Philousophe
cebc19b2cd ANDROID: Use SAF only with Nougat
Lollipop doesn't have some functions like removeDocument and isTreeUri.
SAF is slower and doesn't need to be enabled on Lollipop devices.
2023-03-11 18:20:36 +01:00
Le Philousophe
28efe36ead ANDROID: Fix missing format call
This was calling String(const char *beginP, const char *endP) instead of
formatting the string.
2023-03-04 11:22:13 +01:00
Le Philousophe
ab592d8e63 ANDROID: Simplify Android startup
Do not pass arguments to the process but customize the backend instead
2023-03-02 14:22:06 +02:00
Le Philousophe
e3c52dde9c ANDROID: Don't directly use remove() for save files
Use our brand new remove feature in filesystem
2023-03-02 14:21:45 +02:00
Antoniou Athanasios
afb267c83d ANDROID: Create and Register default path for icons 2023-03-02 14:21:24 +02:00
antoniou79
d6c0aeafcb ANDROID: Do not set global save path as launch param 2023-03-02 14:21:16 +02:00
Le Philousophe
67743660ca ANDROID: Don't override gDebugLevel 2023-02-12 20:33:28 +01:00
Le Philousophe
a465718c24 ANDROID: Fix comment
For coherence sake
2023-01-20 14:14:03 +01:00
Le Philousophe
ca1dbfc9d6 ANDROID: Add SAF support 2023-01-20 14:14:03 +01:00
Le Philousophe
9631567923 ANDROID: Add a method to get running SDK version
Co-authored-by: antoniou79 <a.antoniou79@gmail.com>
2023-01-20 14:14:03 +01:00
Cameron Cawley
9f4f22b3bf AUDIO: Support mono audio output in the mixer 2022-11-18 17:17:00 +01:00
Le Philousophe
4ab044a254 OPENGL: Merge both OpenGL contexts 2022-06-26 18:32:10 +02:00
Le Philousophe
57e27dcf12 ANDROID: Let user customize its preferred touch modes
There are 3 settings: in menus, in 2D games, in 3D games
2022-06-14 00:08:04 +03:00
Le Philousophe
b978cd1caa OPENGL: Allow engines to detect OpenGL info without switching
For now only OpenGL type and shaders support are available
2022-04-03 22:17:19 +02:00
Le Philousophe
06bc7a25fa OPENGL: Indicate support of OpenGL even in 2D mode
This allows to check for OpenGL support in backend without having to
call initGraphics3d
2022-04-03 22:17:19 +02:00
Le Philousophe
1c18c269dc ANDROID: Add GLAD support 2022-01-18 16:49:03 +01:00
Le Philousophe
b6c0a1c6c8 ANDROID: Refactor touch controls to be graphics backend agnostic 2022-01-02 17:45:32 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Andrea Boscarino
2c84382525 ANDROID/AUDIO: Convert the output buffer size value given to the Mixer from bytes to frame size 2021-12-19 12:53:27 +01:00
Andrea Boscarino
f37489dd80 AUDIO/BACKENDS: Store output audio buffer size in Mixer 2021-12-09 22:03:40 +01:00
Le Philousophe
bb2871cd63 ANDROID: Implement modes completely to allow switching between 3D and 2D 2021-11-29 00:04:45 +01:00
Le Philousophe
5248999c95 ANDROID: Better debug of which graphic backend is used 2021-11-29 00:04:45 +01:00
Le Philousophe
5d56c1cdf0 ANDROID: Merge 3D graphics backend
Move each graphic part in backends/graphics and backends/graphics3d
2021-11-29 00:04:45 +01:00
Cameron Cawley
5022489277 BACKENDS: Refactor the API for creating Mutexes 2021-11-12 20:19:45 +01:00
antoniou79
4c163d99ad ANDROID: Set gui-scale to Large by default 2021-08-14 19:18:54 +03:00
antoniou
2782b1265d ANDROID: Remove set default gui_scale code
This causes a crash, so it needs another approach
2021-08-14 11:22:08 +03:00
antoniou
6ab16e6ea9 ANDROID: Fix build after PR #3264
And set default scale to 0 (very large) for now
2021-08-14 10:39:04 +03:00
Thierry Crozat
abf782c670 COMMON: Remove kFeatureHiDPI from OSystem and use getHiDPIScreenFactor instead 2021-08-13 21:41:33 +01:00
Martin Gerhardy
a0c237f7b9 EVENTRECORDER: added new event for OSystem::getTimeAndDate 2021-07-09 19:23:21 +02:00
antoniou79
6afae47470 ANDROID: Add support for feature OSystem::kFeatureHiDPI
For testing purposes and feedback mostly

Also set the level for debug to 3, to get messages related to native resolution and scaling from the new hidpi gui scale code
2021-04-12 15:05:34 +03:00
antoniou
987becc529 ANDROID: Fix physical mouse behavior and allow multitouch hold and drag
Also added various comments to document behavior.

Minor JE_MULTI event (Fix concerned bad brackets code in the events.cpp for JE_MULTI (multiple fingers held down)
) fix and comments for mouse behavior
Allow onHover to catch the mouse events instead of OnTrackBallEvent()
Also the "system back" button is ignored for the Trackball too because we treat it as mouse in isMouse(e) check
Add multitouch handler class. Handling and early filtering of multitouch events is moved in the new class.
2021-01-10 22:10:29 +02:00
Cameron Cawley
01b4432825 BACKENDS: Use Common::U32String for OSystem::setWindowCaption 2020-11-22 17:20:19 +00:00
Cameron Cawley
b246dbdfb6 ANDROID: Add a backend-specific options widget 2020-11-22 16:35:03 +00:00
Vladimir Serbinenko
68a9136e4d
COMMON: Rewrite Encoder and drop dependency on iconv (#2586)
Different platforms have different levels of support of encodings and
often have slight variations. We already have tables for most encoding
with only CJK missing. Full transcoding inclusion allows us to get reliable
encoding results independently of platform. The biggest con is the need for
external tables encoding.dat.

It removes a duplicate table for korean in graphics/korfont.cpp
2020-11-15 16:20:35 +01:00
antoniou
64eb1c0afe ANDROID: A tentative handling of handling joystick control
Basically as a virtual mouse
2020-10-25 02:30:32 +03:00
Cameron Cawley
b6a8fc5dd2 ANDROID: Minor cleanup 2020-10-14 17:47:22 +01:00
antoniou
e25ac0bc55 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:26:31 +03:00
antoniou
5613c50fb3 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:26:38 +03:00
antoniou
50eb038312 ANDROID: Comment about related bug report for transient config options 2020-10-02 12:42:06 +03:00
antoniou
8a87db94de KEYMAPPER: remap timeout (ms) can be set from config
Config key is "remap_timeout_delay_ms", min value is 3000
2020-09-26 17:00:57 +03:00
antoniou
c45dfd4a2f ANDROID: Migrate old save files
More testing pending
2020-09-24 01:50:45 +03:00
antoniou
6906bba959 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-16 20:34:49 +03:00
aryanrawlani28
a9c5e930f0 ANDROID: Make clipboards work with U32Strings. 2020-08-30 14:43:41 +02:00