Commit Graph

973 Commits

Author SHA1 Message Date
Hakim Hauston 716b935944 [ADPF] PerformanceHintAPI - include core threads + use NDK API (#16610)
* [ADPF] PerformanceHintAPI - include core threads + use NDK API
2023-12-28 09:13:11 +08:00
qiuguohua 50c7daece6 Fixed the issue of OpenHarmony compilation failure on Windows (#16537)
Co-authored-by: qgh <>
2023-11-26 22:15:02 +08:00
江战 59ff2099c9 fix duration (#16489) 2023-11-10 15:44:11 +08:00
bofeng-song 7d3ab9e6a6 Fix the problem that the editbox shifts too far away when the keyboard pops up (#16461)
* Fix the problem that the editbox shifts too far away when the keyboard pops up
2023-11-08 10:06:02 +08:00
江战 7e459d2ab9 ADPF bindings (#16445) 2023-11-02 11:26:36 +08:00
qiuguohua f8b5d131f4 Turning off textinput when using SDL (#16421) 2023-10-13 10:20:04 +08:00
oahc09 fcb95b5a37 feat:[xr] support dispatch xr event to ts (#16382)
* feat:[xr] support dispatch xr event to ts

* improve:add se::AutoHandleScope scope;
2023-10-10 13:53:38 +08:00
James Chen 093bc8724e Update v8 to 11.6.189.22 (#16364)
* Update se code to adapt v8 11.4

* Fix setter

* VisitHandlesWithClassIds was added again.

* Remove log in evalString

* Revert in ScriptEngine.cpp

* Update external-config.json

* Remove unused ndkPath in libcocos2dx/build.gradle

* Update external config to v3.8.2-11
2023-10-10 11:06:02 +08:00
oahc09 2928e74036 feat:support xr controller a/b/x/y/trigger/thumbstick touch event (#16293)
* feat:support xr controller a/b/x/y/trigger/thumbstick touch event

* fix:eslint problem

* refactor:add new enum/struct for touch event info
2023-09-26 14:32:23 +08:00
James Chen e9b2a15f18 Fix XR header include and don't build XRInterface.cpp if XR is disabled. (#16324) 2023-09-25 14:09:28 +08:00
minggo aa601815c4 Merge branch 'v3.8.1' into v3.8.2-merge-v3.8.1
Conflicts:
	cocos/render-scene/scene/submodel.ts
2023-09-20 15:15:22 +08:00
qiuguohua 608660ae60 Fixed multi-threading causing view read failure (#16253) 2023-09-15 10:19:08 +08:00
qiuguohua 290746adb0 Fixed the problem of incorrect display position of the emulator. (#16238) 2023-09-11 15:07:02 +08:00
minggo 554598643a Merge branch 'v3.8.1' into v3.8.2-merge-v3.8.1 2023-09-08 14:34:24 +08:00
qiuguohua 3822786b7c Fix SDL-related issues (#16212)
* 1.Fixed editbox input send message twice.
2.Fixed when the window is hidden to send message twice
3.Fixed unresponsive right mouse button

* Remove  redundant files.

* Fixed ios compile failures.

* fixed ci errors for ios
2023-09-08 10:28:16 +08:00
James Chen d2c3429f95 Refactor Openharmony platform code to support switching between napi (ark js runtime) and v8 (#16093)
* OH could use v8 now.

* napi addon works.

* Use Napi addon to refactor code.

* Fix compilation errors.

* tweak

* Refactor oh platform, remove some hacking for oh.

* Fix log in runScript.

* Fix the issues in napi mode.

* Revert.

* Remove an unused comment.

* Refactor log output in NapiHelper.cpp and OpenHarmonyPlatform.cpp

* Update oh template.

* Remove unused code.

* Remove unused debug log in jsb-gfx.js

* Update include

* Revert Screen::isDisplayStats.

* update OH template for v8 backend

* update

* Update CMakeLists.txt for OH

* Fix a compilation error in NapiHelper.cpp while switching to NAPI mode

* Keep the symbol of entry function.

* Add -Wl,--gc-sections and add -Wl,-s for release mode.

* Update external to 3.8.2-1

* Don't use `console.assert` directly.

* Remove oh specific methods ( getInnerWidth/Height, getWindowHandle ) in Device class.

---------

Co-authored-by: PP_Pro <chinese1236@qq.com>
2023-09-01 16:27:08 +08:00
pandamicro 0cb410d5da Merge pull request #16127 from cocos/v3.8.1
Merge V3.8.1
2023-08-29 17:01:37 +08:00
qiuguohua 2ea26182e0 Use the resize event of SDL (#16072)
* 1. Use the resize event of SDL;
2. Fix the problem of not getting the button when SDL is moving.

* 1.Remove redundant code.
2.Fixed compilation errors.

* Avoiding repeated viewDidChangeBackingProperties function calls.

* Fix the way buttons are fetched.
2023-08-28 09:46:21 +08:00
mmyduckx 95acc35ab9 add some native feature for videoplayer (#16096)
* add some native feature for videoplayer

* fix review&clang-tidy

* update version
2023-08-25 14:23:37 +08:00
qiuguohua e86f6d27fd Does not handle mismatched touchid (#16078) 2023-08-24 10:47:45 +08:00
qiuguohua 62a9da122e Use sdl2 on mac platform (#16030)
* Use sdl2 on mac platform
2023-08-21 16:45:53 +08:00
oahc09 56417f35b0 improve:adjust xr begin/end render frame call's position (#16021)
(Calculate the correct delta time)
2023-08-18 15:11:35 +08:00
oahc09 22ab4b2e44 improve:xr pico use vk1.1 (#15959) 2023-08-15 15:07:37 +08:00
mmyduckx 8c1a005d21 add http patch request process (#15898) 2023-08-09 11:27:39 +08:00
qiuguohua 06341f3037 Uncapture global mouse events. (#15834) 2023-08-02 14:20:24 +08:00
bofeng-song acab20f348 fix multi touch cause crash on Android platform (#15796) 2023-07-24 10:21:39 +08:00
minggo e5802a5e9c Merge branch 'v3.8.0' into v3.8.1-merge-v3.8.0
Conflicts:
	cocos/spine/lib/spine-define.ts
	cocos/spine/skeleton-cache.ts
	cocos/spine/skeleton.ts
:	native/external-config.json
2023-07-18 11:53:54 +08:00
bofeng-song 95c93e51c1 refine: Optimize the display of the editing box on the Android platform. (#15730)
* refine: Optimize the display of the editing box on the Android platform.
2023-07-17 16:11:13 +08:00
qiuguohua fb2f76d028 Repair mac platform to open the pointerlock click mouse will appear offset problem. (#15750) 2023-07-17 11:43:55 +08:00
qiuguohua 39c57f0dbb v3.8 Support openharmony4.0 (#15708)
* Fix openharmony platform issues:
1. Fix xmlhttprequest request problems.
2. Repair the problem of not being able to display full screen.

* fix: crash on OH 4.0 (#15656)

* Openharmony adapted to the new Deveco(3.1 beta2) version

* Runtime environment using harmonyos

* Modifying configuration content

* Modify the usage syntax
Restore default values

---------

Co-authored-by: PP <chinese1236@qq.com>
2023-07-13 17:22:32 +08:00
江战 5f71d04aac Filp the y-axis value for stick (#15570) 2023-06-28 18:21:29 +08:00
ChiaNing bf7874a9f4 fix android label shadow Pollution (#15470) 2023-06-18 19:31:26 +08:00
江战 8c41446e96 Add Android GPG keyboard & Mouse support (#15385)
* Add Android GPG keyboard & mouse support
2023-06-08 21:42:45 +08:00
qiuguohua 343393942c Fix harmonyos platform compilation failure. (#15262) 2023-06-02 14:55:55 +08:00
bofeng-song a8eb030f90 fix install failed with android studio (#15251) 2023-06-01 13:40:11 +08:00
mmyduckx e2f86928f6 fix android videoplayer player again cannot work (#15118) 2023-05-24 10:29:32 +08:00
mmyduckx 16244590d4 fix mac screen change view not resize bug (#15046)
* fix mac screen change view not resize bug
2023-05-16 16:25:26 +08:00
qiuguohua 9be4bb5ae3 OpenHarmony platform moves the 'copyTextToClipboard' interface from the 'SystemWindow' class to the 'System' class (#14972) 2023-05-06 09:48:42 +08:00
minggo fbafcaace4 fix compiling error 2023-04-24 15:32:23 +08:00
minggo a22d16bbe6 Merge branch 'v3.7.3' into merge_v3.7.3 2023-04-24 11:26:58 +08:00
oahc09 63bdc9ff4a feat:xr interface support async load asset image (#14876) 2023-04-23 09:27:55 +08:00
bofeng-song 73412caf59 Fix the issue of button response offset caused by listening to incorrect objects (#14864) 2023-04-20 17:29:12 +08:00
qiuguohua 125f8c8978 [OpenHarmony] Fix the problem of compilation failure on mac due to incorrect case (#14847) 2023-04-20 14:42:42 +08:00
qiuguohua 4ef1621047 Fix the 'fillRect' interface of canvas in openharmony (#14770) 2023-04-11 17:52:46 +08:00
Zeqiang Li 14c450821d Oh issue dev (#14743)
* update effect meta files to 1.7.0

* ohos canvas

* uint16 case

* cache offset
2023-04-11 15:16:06 +08:00
qiuguohua 8303d7fb8c Move the copyTextToClipboard interface from SystemWindow to System (#14729)
* Move the copyTextToClipboard interface from SystemWindow to System

* Use file names with the same case as the directory name
2023-04-07 11:09:08 +08:00
qiuguohua d82983e395 Openharmony multi-window adaptation (#14722)
* The event windowId is assigned the correct value in the openharmony platform

* Merge the latest branches
2023-04-06 12:17:41 +08:00
qiuguohua 342f0da04d Read touch information in the UI thread (#14700) 2023-03-31 17:10:33 +08:00
bofeng-song 6822177313 Android platform, the edit box does not immediately display the contents of the soft keyboard (#14687) 2023-03-30 10:29:49 +08:00
bofeng-song 3a9ea052f3 Fix the crash problem of android platform caused by windowId being 0 (#14670) 2023-03-27 16:11:05 +08:00