summaryrefslogtreecommitdiffstats
path: root/platform/android/java/lib/src
Commit message (Collapse)AuthorAgeFilesLines
* Add support for forwarding callbacks from Godot's parent activity.Fredia Huya-Kouadio2021-04-121-0/+19
|
* Fix issue causing the response callback to be invoked with the invalid ↵Fredia Huya-Kouadio2021-04-091-23/+1
| | | | `requestCode` and deprecate support for forwarding callbacks from Godot's parent activity.
* Fixes on android:Bastiaan Olij2021-03-181-1/+1
| | | | | | - creating Vulkan context instead of OpenGL - checking for validity of ENV in wrapper classes - fix for access to JavaVM from threads
* Fix onMainRequestPermissionsResult callback for Android plugins.Fredia Huya-Kouadio2021-03-172-0/+25
|
* Leverage java annotations to simplify the logic used to register the Godot ↵Fredia Huya-Kouadio2021-03-166-55/+218
| | | | plugin methods.
* Update the logic to load Godot Android plugins packaged into the binary.Fredia Huya-Kouadio2021-02-261-37/+1
| | | | The previous logic had the side effect of imposing a limit of one plugin per `aar` binary. The update lifts that restriction.
* Update the initialization timeline for the Godot fragment to be more ↵Fredia Huya-Kouadio2021-02-241-16/+26
| | | | consistent with the previous activity based timeline.
* Expose GodotPlugin's utility methods used for registration and signal emitting.Fredia Huya-Kouadio2021-02-152-22/+144
| | | | This enables creation and use of a plugin like class by composition rather than inheritance.
* Fix joystick axis mapping issues with NVIDIA shield. Probably others.Michael Conrad2021-02-092-103/+157
| | | | | | | | | | | | | | | | | | | Issues addressed: a) Axis mappings were including virtual mouse axes on NVIDIA Shield TV. The virtual mouse axes have the same axis numbers as the normal analog stick numbers. This was completely breaking joypad support on NVIDIA Shield TV. b) Joypads were being tracked in a List with the index in the list being treated as the Godot device id. If a device were to be removed, any device later in the list would be shifted, potentially causing future events with the shifted joypads to have incorrect IDs according to the Godot engine. c) Unnecessary events were being sent to the Godot engine. A check was added (per Joystick) that will prevent sending events for all axes when only a single axis value changed. A similar check was added for "HATs". See #45712
* CI: Update to clang-format 11 and apply ternary operator changesRémi Verschelde2021-01-121-4/+4
|
* Update copyright statements to 2021Rémi Verschelde2021-01-0134-68/+68
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Android: Allow Mouse Capture thebestnom2020-12-084-1/+21
|
* fix android wrong multi-touch pointeridalan-w-2552020-12-031-4/+2
| | | | Fixes #43519.
* Remove empty lines around braces with the formatting scriptAaron Franke2020-11-164-6/+0
|
* Merge pull request #43248 from HEAVYPOLY/masterRémi Verschelde2020-11-161-3/+3
|\ | | | | Change android orientations from sensor to user
| * Change android orientations from sensor to userVaughan Ling2020-10-311-3/+3
| | | | | | | | | | # Conflicts: # platform/android/java/lib/src/org/godotengine/godot/GodotIO.java
* | Merge pull request #37158 from thebestnom/android-click-supportRémi Verschelde2020-10-306-70/+117
|\ \ | |/ |/| Support mouse events on Android
| * Android: Mouse Implementationthebestnom2020-10-096-70/+117
| | | | | | | | | | Implement mouse Move touch to inputManager Change to use android/input.h
* | Implement OS.get_window_safe_area() for AndroidMark Riedesel2020-10-271-0/+26
|/
* Add overridable init method for the Godot fragment instance.Fredia Huya-Kouadio2020-09-181-2/+22
|
* Fix issue causing the textedit to move upwardFredia Huya-Kouadio2020-08-301-3/+3
|
* Merge pull request #41550 from ↵Rémi Verschelde2020-08-272-43/+7
|\ | | | | | | | | godotengine/revert-40671-virtual-keyboard-height-fix Revert "Fix virtual keyboard height regression"
| * Revert "Fix virtual keyboard height regression"Fredia Huya-Kouadio2020-08-262-43/+7
| |
* | Merge pull request #41549 from ↵Rémi Verschelde2020-08-261-1/+0
|\ \ | |/ |/| | | | | godotengine/revert-40484-android-virtual-keyboard-adjustment Revert "Disable virtual keyboard focus adjustment on Android"
| * Revert "Disable virtual keyboard focus adjustment on Android"Fredia Huya-Kouadio2020-08-261-1/+0
| |
* | Revert "Move PopupWindow logic to GodotEditText on Android"Fredia Huya-Kouadio2020-08-262-56/+67
|/
* Move PopupWindow logic to GodotEditText on AndroidPouleyKetchoupp2020-07-282-67/+56
|
* Merge pull request #40706 from akien-mga/style-fix-file_format-macosRémi Verschelde2020-07-271-1/+1
|\ | | | | Fix code format scripts compat with non-GNU Unices
| * Style: Fix code format scripts compat with non-GNU UnicesRémi Verschelde2020-07-271-1/+1
| | | | | | | | | | | | | | It's too hard to get compatibility between GNU and BSD sed, so let's just use perl oneliners. And improve it to also remove trailing tabs, not just spaces.
* | Merge pull request #40671 from nekomatata/virtual-keyboard-height-fixRémi Verschelde2020-07-272-7/+43
|\ \ | | | | | | Fix virtual keyboard height regression
| * | Fix virtual keyboard height regressionPouleyKetchoupp2020-07-242-7/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | Disabling virtual keyboard focus adjustement caused get_keyboard_height to always return 0 because it was calculated when the view is resized. In order to fix it, a PopupWindow is now created on top of the main view and is set for focus adjustments so the keyboard size can be calculated based on this popup without affecting the main view.
* | | Fix Return key events in LineEdit & TextEdit on AndroidPouleyKetchoupp2020-07-263-7/+21
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Depending on the device implementation, editor actions could be received with different action ids or not at all for multi-line. Added a parameter to virtual keyboards to properly handle single-line and multi-line cases in all situations. Single-line: Input type set to text without multiline to make sure actions are sent. IME options are set to DONE action to force action id consistency. Multi-line: Input type set to text and multiline to make sure enter triggers new lines. Actions are disabled by the multiline flag, so '\n' characters are handled in text changed callbacks.
* | Android: Keyboard modifier and arrow key supportthebestnom2020-07-214-4/+39
|/
* Disable virtual keyboard focus adjustment on AndroidPouleyKetchoupp2020-07-201-0/+1
| | | | | | | | | | | | | Fixes #37190 The default adjustment setting was causing the view to pan down in order to adjust the focus on the text content. We don't need any focus adjustment since we're using a fixed size window for our application. Documentation: https://developer.android.com/reference/android/view/WindowManager.LayoutParams#SOFT_INPUT_ADJUST_NOTHING
* Enable the ability to use Godot as a subview within an Android appFredia Huya-Kouadio2020-06-2510-192/+291
|
* Clean up the `GodotPlugin` public API.Fredia Huya-Kouadio2020-06-162-5/+15
|
* Provide the ability for clients of the Godot library to add their own ↵Fredia Huya-Kouadio2020-05-271-1/+2
| | | | command line arguments
* Merge pull request #39004 from nekomatata/android-reset-surfaceRémi Verschelde2020-05-243-13/+7
|\ | | | | Proper surface reset when resuming app on Android
| * Proper surface reset when resuming app on AndroidPouleyKetchoupp2020-05-243-13/+7
| | | | | | | | Just re-creating the window instead of restarting the app entirely.
* | Use long instead of int for object id in Android java wrapperPouleyKetchoupp2020-05-241-2/+2
|/ | | | | Using int for 64-bit values might cause issues with objects not found in ObjectDB when the id is truncated.
* Merge pull request #38309 from SkyLucilfer/AndroidLineEditRémi Verschelde2020-05-203-14/+39
|\ | | | | Fix Android LineEdit editing bugs
| * Fix Android LineEdit editing bugsSkyJJ2020-05-163-14/+39
| |
* | Implementation of the Godot Android Plugin configuration fileFredia Huya-Kouadio2020-05-171-3/+8
|/
* Merge pull request #37924 from thebestnom/migrate-to-androidXRémi Verschelde2020-05-166-13/+16
|\ | | | | Android: Migrate deprecated support library to AndroidX
| * Android: Migrate deprecated support library to AndroidXthebestnom2020-05-106-13/+16
| |
* | Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-1425-87/+0
|/ | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde2020-05-101-1/+2
| | | | | | | Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
* Style: Add missing copyright headersRémi Verschelde2020-05-101-2/+2
|
* clang-format: Add JavaImportGroups for Java codeRémi Verschelde2020-05-0626-38/+80
|
* Address `OS.request_permissions()` bug when non-platform permission(s) is ↵Fredia Huya-Kouadio2020-05-051-4/+7
| | | | included