summaryrefslogtreecommitdiff
path: root/platform/android/java/lib
AgeCommit message (Collapse)Author
2021-08-13Switch to input buffering on AndroidPedro J. Estébanez
Key, touch and joystick events will be passed directly from the UI thread to Godot, so they can benefit from agile input flushing. As another consequence of this new way of passing events, less Java object are created at runtime (`Runnable`), which is good since the garbage collector needs to run less. `AndroidInputHandler` is introduced to have a smaller cross-thread surface. `main_loop_request_go_back()` is removed in favor just inline calling `send_window_event()` at the most caller's convenience (i.e., leveraging the new `p_deferred`` parameter as appropriate). Lastly, `get_mouse_position()` and `get_mouse_button_state()` now just call through `Input` to avoid the need of sync of mouse data tracked on the UI thread.
2021-08-12Resolve issue where the Godot app remains stuck when resuming.Fredia Huya-Kouadio
This was caused by the fact that a new instance of Godot was created at resume while a previous instance already existed. The previous instance would then go through its cleanup lifecycle, and would thus attempt to close the entire app, leading to the system to restart the app, thus starting the cycle anew. The fix involves reusing the previous instance of Godot if one is available instead of creating a new one, as well as giving control to the host activity for how the process should be terminated.
2021-08-12Properly finishes Godot's Android activity when destroyed by the systemMarcus Brummer
2021-07-25Fix various typos with codespellluz paz
Found via `codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,fave,findn,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint`
2021-07-06Merge pull request #50220 from madmiraal/fix-50125Rémi Verschelde
Queue the calls to GodotLib.key when Android virtual done is pressed
2021-07-06Remove Android onKeyMultiple overrideMarcel Admiraal
2021-07-06Queue the calls to GodotLib.key when Android virtual done is pressedMarcel Admiraal
2021-07-06Merge pull request #50107 from madmiraal/android-use-lambdasRémi Verschelde
Replace single method anonymous classes with lambdas in Godot Java code
2021-07-03Use static inner classes in Godot Java codeMarcel Admiraal
2021-07-03Replace single method anonymous classes with lambdas in Godot Java codeMarcel Admiraal
2021-07-02Merge pull request #50085 from madmiraal/android-replace-stringbufferRémi Verschelde
Use StringBuilder instead StringBuffer in Godot Java code
2021-07-02Merge pull request #50083 from madmiraal/android-fix-raw-useRémi Verschelde
Fix raw use of parameterized Class
2021-07-02Remove redundant explicit types in Godot Java codeMarcel Admiraal
2021-07-02Use StringBuilder instead StringBuffer in Godot Java codeMarcel Admiraal
2021-07-02Merge pull request #50078 from madmiraal/android-remove-unused-importsRémi Verschelde
2021-07-02Fix raw use of parameterized ClassMarcel Admiraal
2021-07-02Remove unused imports from Android Java codeMarcel Admiraal
2021-07-02Merge pull request #50074 from madmiraal/android-replace-c-arrayRémi Verschelde
Use Java array declarations not C-style declarations in Android Java code
2021-07-02Merge pull request #50072 from madmiraal/android-remove-interface-modifiersRémi Verschelde
Remove redundant interface modifiers from Android Java code
2021-07-02Use Java array declarations not C-style declarations in Android Java codeMarcel Admiraal
2021-07-02Remove redundant interface modifiers from Android Java codeMarcel Admiraal
2021-07-02Remove unnecessary semicolons from Android Java codeMarcel Admiraal
2021-06-30Fix unchecked call to put() warning in GodotInputHandler.javaMarcel Admiraal
2021-06-10Merge pull request #49435 from madmiraal/add-android-external-dirRémi Verschelde
Add OS.get_external_data_dir() to get Android external directory
2021-06-10Add OS.get_external_data_dir() to get Android external directoryMarcel Admiraal
2021-06-10Remove unused AudioDriverAndroid from AndroidMarcel Admiraal
2021-06-07Style: Cleanup uses of double spaces between wordsRémi Verschelde
Or after punctuation. Tried to leave third-party stuff alone, unless it has been heavily modified for Godot.
2021-05-24Fixed screen orientation on AndroidSzymon Majewski
2021-05-19Android: Add support for cursor iconsthebestnom
2021-04-12Add support for forwarding callbacks from Godot's parent activity.Fredia Huya-Kouadio
2021-04-09Fix issue causing the response callback to be invoked with the invalid ↵Fredia Huya-Kouadio
`requestCode` and deprecate support for forwarding callbacks from Godot's parent activity.
2021-03-18Fixes on android:Bastiaan Olij
- creating Vulkan context instead of OpenGL - checking for validity of ENV in wrapper classes - fix for access to JavaVM from threads
2021-03-17Fix onMainRequestPermissionsResult callback for Android plugins.Fredia Huya-Kouadio
2021-03-16Enable `doNotStrip` when doing development/debugging within Android StudioFredia Huya-Kouadio
2021-03-16Leverage java annotations to simplify the logic used to register the Godot ↵Fredia Huya-Kouadio
plugin methods.
2021-02-26Update the logic to load Godot Android plugins packaged into the binary.Fredia Huya-Kouadio
The previous logic had the side effect of imposing a limit of one plugin per `aar` binary. The update lifts that restriction.
2021-02-24Merge pull request #46381 from m4gr3d/update_godot_fragment_lifecycle_masterRémi Verschelde
Update the initialization timeline for the Godot fragment
2021-02-24Update the initialization timeline for the Godot fragment to be more ↵Fredia Huya-Kouadio
consistent with the previous activity based timeline.
2021-02-24Add logic to record the version of the Godot engine for the Android platform.Fredia Huya-Kouadio
2021-02-17Add missing `ndkVersion` to the library gradle build config.Fredia Huya-Kouadio
2021-02-15Expose GodotPlugin's utility methods used for registration and signal emitting.Fredia Huya-Kouadio
This enables creation and use of a plugin like class by composition rather than inheritance.
2021-02-09Fix joystick axis mapping issues with NVIDIA shield. Probably others.Michael Conrad
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
2021-01-30add search extensions for scons' pathzaevi
2021-01-12CI: Update to clang-format 11 and apply ternary operator changesRémi Verschelde
2021-01-01Update copyright statements to 2021Rémi Verschelde
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 🎆
2020-12-08Android: Allow Mouse Capture thebestnom
2020-12-03fix android wrong multi-touch pointeridalan-w-255
Fixes #43519.
2020-11-16Remove empty lines around braces with the formatting scriptAaron Franke
2020-11-16Merge pull request #43248 from HEAVYPOLY/masterRémi Verschelde
Change android orientations from sensor to user
2020-11-14Update the logic to query for the 'scons' command executable path.Fredia Huya-Kouadio