summaryrefslogtreecommitdiffstats
path: root/platform/android/java/lib/src
Commit message (Collapse)AuthorAgeFilesLines
* One Copyright Update to rule them allRémi Verschelde2023-01-0547-1363/+1363
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Merge pull request #69990 from exoticorn/fix-android-touch-inputFredia Huya-Kouadio2022-12-141-1/+1
|\ | | | | Fix ambiguous touch input events on Android
| * handle ambiguous input events as touch eventsDennis Ranke2022-12-121-1/+1
| | | | | | | | there can be events can have both SOURCE_TOUCHSCREEN and SOURCE_STYLUS. handle them as touch events rather than mouse events.
* | Rename all gdnative occurences to gdextensionGilles Roudière2022-12-122-18/+18
|/ | | | | | | | | | | | | Non-exhaustive list of case-sensitive renames: GDExtension -> GDNative GDNATIVE -> GDEXTENSION gdextension -> gdnative ExtensionExtension ->Extension (for where there was GDNativeExtension) EXTENSION_EXTENSION ->EXTENSION (for where there was GDNATIVE_EXTENSION) gdnlib -> gdextension gdn_interface -> gde_interface gdni -> gde_interface
* Use system fonts as fallback and improve system font handling.bruvzg2022-12-041-0/+5
| | | | | | | Add support for font weight and stretch selection when using system fonts. Add function to get system fallback font from a font name, style, text, and language code. Implement system font support for Android. Use system fonts as a last resort fallback.
* Enable GLES3 on Androidclayjohn2022-11-293-15/+12
| | | | | | | | | | Add necessary build flags and switch from using a GLES2 context to a GLES3 one. This also enables building for OpenXR Co-authored-by: m4gr3d <fhuyakou@gmail.com> Co-authored-by: dsnopek <dsnopek@gmail.com>
* Add missing display server overridesFredia Huya-Kouadio2022-11-275-3/+99
| | | | Improves the base functionality for the Android platform and helps reduce the amount of spurious error logs emitted.
* Fix parsing of the `keep_screen_on` display settingFredia Huya-Kouadio2022-11-171-1/+1
|
* Android: Fix parsing `keep_screen_on` settingRémi Verschelde2022-11-171-1/+1
| | | | | | | | Boolean stringification changed in Godot 4.0. Fixes #67034. Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
* Small set of fixes to the input logicFredia Huya-Kouadio2022-11-073-37/+31
|
* Add double_tap attribute to InputEventScreenTouchFredia Huya-Kouadio2022-10-223-33/+20
| | | | This provides parity with the `InputEventMouseButton` allowing for proper conversion between the two events.
* Merge pull request #66946 from m4gr3d/cursor_shape_logic_cleanup_mainFredia Huya-Kouadio2022-10-052-8/+12
|\ | | | | Cleanup of the Android cursor shape logic
| * Cleanup of the Android cursor shape logicFredia Huya-Kouadio2022-10-052-8/+12
| |
* | Fix null in android keyboard handling.Jason Knight2022-10-051-1/+1
|/
* Split rendering driver project setting into renderer_name and ↵clayjohn2022-09-191-4/+4
| | | | rendering_driver. To differentiate between a driver (e.g. Vulkan or D3D12) and a renderer (e.g. clustered or mobile renderer).
* Merge pull request #65501 from m4gr3d/fix_invalid_project_manager_path_mainRémi Verschelde2022-09-082-8/+31
|\ | | | | | | Fix issue causing the project manager to crash because of missing path argument
| * Fix issue causing the project manager to crash because of missing path argumentFredia Huya-Kouadio2022-09-072-8/+31
| | | | | | | | In the process, the initialization logic is updated to show an error message and gracefully close the engine when setup errors occur.
* | Enable long press, pan and scale gestures for the Godot Android EditorFredia Huya-Kouadio2022-09-071-1/+1
| | | | | | | | Fix the bug causing the editor to crash when running the project.
* | Cleanup the Android input logic implementationFredia Huya-Kouadio2022-09-076-215/+521
|/
* Fix issue preventing the Android Editor from displaying the project contentFredia Huya-Kouadio2022-08-152-6/+7
| | | | | The issue was causing by a bug within the logic for `FileAccessFilesystemJAndroid#eof_reached()` causing that value to remain false after the eof was reached. This in turn caused an infinite loop in the file scanner preventing the project's content from showing up.
* Merge pull request #62885 from madmiraal/fix-59931Rémi Verschelde2022-08-083-20/+21
|\
| * Fix incorrect Android scancodesMarcel Admiraal2022-07-133-20/+21
| |
* | Add support for multiple virtual keyboard typesBrian Semrau2022-08-043-11/+47
| |
* | Address remaining scoped storage regressionsFredia Huya-Kouadio2022-07-264-31/+33
|/ | | | | - Accelerate common path used to check the storage scope for a given path - Update the logic for the `get_as_text()` method - previous logic loads the content of a text file one byte at a time
* Add full support for Android scoped storage.Fredia Huya-Kouadio2022-07-0513-120/+1667
| | | | | This was done by refactoring directory and file access handling for the Android platform so that any general filesystem access type go through the Android layer. This allows us to validate whether the access is unrestricted, or whether it falls under scoped storage and thus act appropriately.
* Remove broken scroll gesture on AndroidMarcel Admiraal2022-06-212-14/+0
|
* Ensure joystick has been added or not already removed when processing inputMarcel Admiraal2022-06-161-0/+3
|
* Misc editor tweaks and polishes:Fredia Huya-Kouadio2022-05-311-3/+21
| | | | | | - Using a bucketized approach to select the editor scale in order to avoid too high values - Add default app dimensions: used on Android devices with free floating app windows to set the default app frame - Add ability to launch the Game window in an adjacent frame when in multi window mode
* Merge pull request #61333 from m4gr3d/fix_restart_logic_mainRémi Verschelde2022-05-233-62/+149
|\
| * Fix the logic to restart the Godot applicationFredia Huya-Kouadio2022-05-233-62/+149
| |
* | Remove duplicate Android sensor listener registrationsMarcel Admiraal2022-05-231-4/+0
|/
* Fix screen_get_usable_rect returning display safe areaMarcel Admiraal2022-05-021-1/+1
|
* Merge pull request #60551 from madmiraal/implement-3466Rémi Verschelde2022-05-021-0/+21
|\ | | | | Add a method for obtaining display cutouts on Android
| * Add a method for obtaining display cutouts on AndroidMarcel Admiraal2022-04-261-0/+21
| |
* | Merge pull request #60563 from madmiraal/fix-60562Rémi Verschelde2022-04-291-8/+7
|\ \
| * | Check for null when retrieving clip data item text on AndroidMarcel Admiraal2022-04-271-8/+7
| |/
* / Implement text-to-speech support on Android, iOS, HTML5, Linux, macOS and ↵bruvzg2022-04-284-0/+361
|/ | | | | | Windows. Implement TextServer word break method.
* Merge pull request #60433 from madmiraal/remove-superfluous-null-checkRémi Verschelde2022-04-251-4/+0
|\ | | | | Remove superfluous null check
| * Remove superfluous null checkMarcel Admiraal2022-04-221-4/+0
| |
* | Merge pull request #60457 from madmiraal/replace-index-iteratorsRémi Verschelde2022-04-252-5/+4
|\ \ | | | | | | Replace index iterators with for each loops.
| * | Replace index iterators with for each loops.Marcel Admiraal2022-04-232-5/+4
| |/
* | Merge pull request #60441 from madmiraal/remove-superfluous-inputmanagerRémi Verschelde2022-04-253-240/+5
|\ \ | | | | | | Remove superfluous Android InputManager interface and implementation
| * | Remove superfluous Android InputManager interface and implementationMarcel Admiraal2022-04-223-240/+5
| |/
* / Remove superfluous check for minimum Android SDK.Marcel Admiraal2022-04-221-21/+16
|/
* Update the editor display scale based on the device's scaled densityFredia Huya-Kouadio2022-04-041-1/+5
|
* Fix flickering issues with low processor mode on AndroidFredia Huya-Kouadio2022-03-2911-23/+2530
|
* Android port of the Godot EditorFredy Huya-Kouadio2022-03-282-8/+29
| | | | | | | These set of changes focus primarily on getting the core logic and overall Godot Editor UI and functionality up and running natively on Android devices. UI tweaks / cleanup / polish, as well configuration for Android specific functionality / restrictions will be addressed in follow-up PRs iteratively based on feedback. Co-authored-by: thebestnom <shoval.arad@gmail.com>
* Style: Cleanup single-line blocks, semicolons, dead codeRémi Verschelde2022-02-161-2/+3
| | | | | Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported.
* Add screen_get_refresh_rate to DisplayServerjordi2022-02-031-0/+8
|
* Add `DisplayServer.clipboard_has()` to check clipboard contentHaoyu Qiu2022-01-191-1/+5
|