cf7b59b6c8
Fix small formatting inconsistencies.
2024-03-01 16:25:19 +01:00
6a6d3acd96
Clang format everything.
2024-03-01 11:56:19 +01:00
973b686a86
Found and updated some remaining old package paths.
2024-02-23 00:51:21 +01:00
d44d8c2bcd
Fix checking the wrong property in the Android's export plugin.
2024-02-23 00:49:31 +01:00
deec900b5e
Ported: Update the logic used to start / stop the GL thread
...
Currently the GL thread is started / stopped when the activity is respectively resumed / paused. However, according to the `GLSurfaceView` documentation, this should be done instead when the activity is started / stopped, so this change updates the start / stop logic for the GL thread to match the documentation.
- m4gr3d
194452bf38
2024-02-08 22:10:48 +01:00
f927e2db73
Ran the clang format script.
2023-12-25 20:27:28 +01:00
Fredia Huya-Kouadio
6713693291
Add Android project settings for gesture support
...
- Include project setting to enable long press for Android devices
- Include project setting to enable pan and scale gestures on Android devices
2023-12-20 23:08:39 +01:00
Fredia Huya-Kouadio
312a907ce7
Update the launchMode
for the GodotApp
activity to allow other activities to be part of the same task
...
For details, see https://developer.android.com/guide/topics/manifest/activity-element#lmode
2023-12-20 22:53:17 +01:00
Fredia Huya-Kouadio
8452eb6c97
Fix Android editor crash issue
...
Fix issue causing the Android editor to crash when pressing back from a running project
2023-12-20 22:52:19 +01:00
Fredia Huya-Kouadio
7000a13bda
Automatically pick the Android sdk path using environment variables
2023-12-20 22:50:59 +01:00
98912a89e8
File copyright header updates pt9.
2023-12-18 00:25:33 +01:00
9022a74db3
Ported from godot: Fix Android input routing logic when using a hardware keyboard
...
When a hardware keyboard is connected, all key events come through so we can route them directly to the engine.
This is not the case for soft keyboards, for which the current logic was designed as it requires extra processing.
- m4gr3d
620fdd1f07
2023-10-02 17:10:27 +02:00
15f092866b
Fix JNI method names and java class lookup names in the android backend.
2023-08-31 21:59:44 +02:00
Hiroki Taira
39bb646127
Add support for DPAD Center key of Android TV remote controller
...
(cherry picked from commit 9dc84e35816fbb41cfabb1b6e11536edd7263c67)
2023-08-30 11:12:51 +02:00
Omar Shehata
eea5d96503
Fix double tap & drag on Android
...
(cherry picked from commit 0c94750642978df5b5a100692c7b8be8522fd668)
2023-08-30 10:58:05 +02:00
Ben Rog-Wilhelm
222dcf6c7c
Fix: incorrectly .gitignored files.
...
(cherry picked from commit 90f3992036b2f2fc1b4d08d1cc854d9cd62f6930)
2023-08-30 10:30:35 +02:00
b18d0a5fc9
Fix the android lib's package locations.
2023-08-27 22:56:41 +02:00
8c6856e77b
Fix the android editor's package locations.
2023-08-27 22:54:20 +02:00
ae92596f9b
Ported: Add parameters for the Godot Activity starting intent to allow restarting or force-quitting the engine
...
Follow-up code cleanup for #78130
- m4gr3d
5cf0ba88e3
2023-06-28 18:58:29 +02:00
556ffc09f7
Ported from godot: Fix issue causing the last edited project to open while switching to another one.
...
Fixes #76562
-m4gr3d
ee07f60b07
2023-06-28 13:16:58 +02:00
e79ea9f3a8
Ported form godot: Fix spatial viewport multitouch detection support
...
Regression introduced by #77497
- m4gr3d
8f44765831
2023-06-28 12:50:27 +02:00
c978f27634
Implemented switching between the running game and the editor in the android editor.
2023-06-15 10:21:23 +02:00
0a4065bb9e
Fix error.
2023-06-11 13:56:35 +02:00
59c6ca8d85
Fix android build.
2023-06-11 13:46:15 +02:00
dbbfcdd526
Ported: Fix issue causing the Android editor to crash when creating a new AudioStreamMicrophone
...
Fixes #73801
- m4gr3d
9c334fa242
2023-06-11 13:40:47 +02:00
d7499a0868
Ported: Improve touchpad and mouse support for the Android editor
...
- m4gr3d
ccd36e0dbe
2023-06-11 13:29:53 +02:00
d6f5dd35e8
Ported: Enable granular control of touchscreen related settings
...
- m4gr3d
61e41facc7
2023-06-11 12:57:25 +02:00
4f2f3f4cf0
Fix android editor build.
2023-06-11 10:45:38 +02:00
3331a7ae04
Ported: Augment the InputEvent class with a CANCELED state
...
The `InputEvent` class currently supports the `pressed` and `released` states, which given the binary nature, is represented by a `bool` field.
This commit introduced the `CANCELED` state, which signals that an ongoing input event has been canceled.
To represent all the states, the `InputEventState` enum is added and the `InputEvent` logic is refactored accordingly.
- m4gr3d
94d6c3dcc6
2023-06-11 10:26:23 +02:00
7e64510427
Ported: Add setting to control the window used to run the project for the Android editor
...
The follow options were added to the (new) `run/window_placement/android_window` editor setting:
- `Auto`: choose how to run the project based on the device screen size
- `Same as Editor`: run the project in the same window as the editor
- `Side-by-side with Editor`: run the project in an adjacent window to the editor
- m4gr3d
b5a908c985
Removed my force launch adjacent solution in favor of this.
2023-06-11 09:52:39 +02:00
ca982ac507
Ported: Add benchmark logic
...
Add benchmarking measuring methods to `OS` to allow for platform specific overrides (e.g: can be used to hook into platform specific benchmarking and tracing capabilities).
- m4gr3d
Also contains some mouse pointer improvements.
2023-05-01 15:32:01 +02:00
Fredia Huya-Kouadio
d54b5ad8f8
Downgrade android gradle plugin to version 7.2.1.
...
Version 7.3.0 changes the build layout which causes updates to the generated shared libraries to not be picked up.
2023-05-01 12:01:13 +02:00
e32e0af40f
Ported: Fix null in android text entry system.
...
- jasonwinterpixel
cec8e09948
2023-04-20 23:46:17 +02:00
6bba08c00b
Ported: Bump the target SDK version to 33 (Android 13)
...
- m4gr3d
2803c471e8
2023-04-15 11:15:16 +02:00
76f9237411
Ported: Fix directory access when the running app has the All files access permission
...
- m4gr3d
e2c7d3e6c0
2023-04-15 11:11:29 +02:00
9fb30c4441
Ported: Use the new API for virtual keyboard height detection on Android, bugfix .
...
- necrashter
9bdb585318
2023-03-12 15:26:58 +01:00
0d12c7ed08
Ported: Fix the issue causing long-press on a selected node on the scene tree to trigger both the context menu and the rename functionality.
...
- m4gr3d
6528f984fe
2023-03-12 13:03:41 +01:00
0eb9d6648f
Added a setting to force launch the project in an adjacent window in the android editor.
2023-02-08 09:25:47 +01:00
7f358b25a6
Fix missing import.
2023-02-07 10:38:29 +01:00
e9c3603024
Fix an another typo.
2023-02-07 09:46:51 +01:00
fdd62f1d9a
Fix typo.
2023-02-07 08:55:00 +01:00
f05211351b
Fix typos.
2023-02-07 03:09:55 +01:00
de642e971d
Ported: Implement file provider capabilities. The previously used file sharing api was restricted after Android N causing the engine to crash whenever used on devices running Android N or higher.
...
- m4gr3d
b04c9a71f4
2023-02-07 02:58:31 +01:00
db67fa53ea
Ported: Add a theme usability setting which updates the touch area of UI elements (e.g: scrollbar) for the editor on touchscreen devices
...
- m4gr3d
8170b7ae1e
2023-02-07 02:50:11 +01:00
e6248b33ab
Ported: Provide a delegate implementation for the killProcess logic on Android
...
The implementation forwards the kill request to the Godot host for handling. If the Godot host is unable to handle the request, it falls back to the `OS_Unix::kill(...)` implementation.
- m4gr3d
48a55ffad3
2023-02-07 02:44:47 +01:00
2e7ee5cef6
Ported: Update the logic to calculate the screen scale on Android
...
Takes into account the ratio between the screen size and the default window dimensions.
- m4gr3d
48aedb239e
2023-02-07 02:22:44 +01:00
7b0a6b3da8
More fixes.
2023-01-16 01:55:43 +01:00
ee1a7ad8ce
Fixed more typos.
2023-01-16 01:22:29 +01:00
5d2cd49139
Fix typos.
2023-01-16 00:54:48 +01:00
2cd4e4d828
Renamed Set to RBSet.
2023-01-15 19:42:08 +01:00