Commit Graph

750 Commits

Author SHA1 Message Date
mmyduckx 9c0e425adb fix ios accelerometer not work (#11142)
* fix-ios-accelerometer not work

* remove all CC_TARGET_OS_TVOS related codes
2022-05-19 09:24:30 +08:00
bofeng-song a2afcd2cdb disable gametick after enter background(revert to logic to version 3.4.2) (#11095) 2022-05-14 18:33:36 +08:00
pandamicro baafb1f4d3 Revert "V3.5.1 no window (#11016)" (#11071)
This reverts commit bd1c1e0088.
2022-05-14 10:20:44 +08:00
yangchao bd1c1e0088 V3.5.1 no window (#11016) 2022-05-12 09:43:46 +08:00
timlyeee f0925edd69 listen WINDOW_RESIZE event by application (#10930) 2022-05-10 17:23:16 +08:00
qiuguohua 18d3ce2f60 Delete useless files, the application has been refactored. (#10807) 2022-04-19 18:19:21 +08:00
bofeng-song 3a3e71632d disable sensor by default, game developer can enable it by set 'acce… (#10770)
* disable sensor by default,  game developer can enable it by set 'accelerometerEnable' to true
2022-04-15 09:49:56 +08:00
qiuguohua 6a3ca162f0 Add member method declaration of appdelegate (#10772) 2022-04-14 18:38:22 +08:00
bofeng-song 9ac28d2fc0 fix wrong alpha get (#10768) 2022-04-14 17:42:16 +08:00
qiuguohua 4450700cc5 Design flaw, conflicts between initializing the default platform and … (#10711)
* Design flaw, conflicts between initializing the default platform and creating a custom platform

* Fix the error of clang-tidy

Co-authored-by: qiuguohua <862332094@qq.com>
2022-04-11 13:56:07 +08:00
Cocos Robot 453963b7a7 [ci skip][AUTO]: Automated clang-format update: 50961cb082fc2f5d6cd066d697d5612b997eaafd (#10712) (#10719)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-04-11 11:10:48 +08:00
qiuguohua e20e4b889e V3.5.0 Distribute touch events independently (#10712)
* Distribute touch events independently

* remove  touch event cast

* Fix the error of clang-tidy

Co-authored-by: qiuguohua <862332094@qq.com>
2022-04-10 22:10:15 +08:00
bofeng-song d8bdec5162 fix android crash due to eglSurface unavailable (#10621)
* skip setRendererAvailable &  isRendererAvailable (#10482)

* fix android crash due to eglSurface unavailable
2022-04-01 14:52:46 +08:00
bofeng-song 0fc5ff79be fix ndkPath not work (#10627) 2022-04-01 13:39:45 +08:00
qiuguohua 2ed00a11e0 Remove the adaptation source code of qnx (#10616)
* Remove the adaptation source code of qnx
2022-04-01 10:54:44 +08:00
Cocos Robot e0d52b3a94 [ci skip][AUTO]: Automated clang-format update: 3efcfd93e6c5a8242db6db9d5c0782ed5290f8ca (#10566) (#10569)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-29 16:39:26 +08:00
qiuguohua 50d2db2035 Avoid creating the window twice (#10566) 2022-03-29 16:26:30 +08:00
bofeng-song 025770fbce fix watermark can not show normally (#10547) 2022-03-28 18:09:33 +08:00
qiuguohua 6166752b37 Use fixed coordinates and modify function name (#10527)
* Use fixed coordinates and modify function name
2022-03-27 09:42:11 +08:00
qiuguohua 422e4ccfe0 V3.5.0 window position (#10526) 2022-03-26 21:12:41 +08:00
qiuguohua 893643d278 V3.5.0 appdelegate (#10509)
1. Modify the parameters of the creation window
2. Modify the relationship between platform and interface
3. Rename vibrate to vibrator in linux and QNX

* Move appdelegate into template

* Optimize the main function of IOS

* Move view.mm into template

* Modify file copyright information

* Modify the addition location of view.mm

* Engine remove dependency SDKWrapper
2022-03-26 19:35:47 +08:00
Cocos Robot 6df16fe826 [ci skip][AUTO]: Automated clang-format update: 1f6796cbe497b6c7e4e0d6596aabb955fc6c58b5 (#10513) (#10514)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-26 19:33:26 +08:00
qiuguohua ecb0533c66 V3.5.0 window position (#10513)
* Mac,windows,linux create lower left window by default

* Mac creates bottom left window by default
2022-03-26 15:38:57 +08:00
江战 909c9df9e9 prevent class CocosWebSocket from obfuscation in release mode (#10511) 2022-03-26 11:00:42 +08:00
qiuguohua b6af1ada02 V3.5.0 create window (#10481)
* 1. Modify the parameters of the creation window
2. Modify the relationship between platform and interface
3. Rename vibrate to vibrator in linux and QNX

* Fix empty platform implementation

* Fix empty platform implementation

* Modify mac and ios createwindow interface

* Create a centered window by default

* Mobile platforms do not require window creation
2022-03-25 18:43:17 +08:00
Cocos Robot da2bb3c5db [ci skip][AUTO]: Automated clang-format update: f9971a5a25b7a78c29f81b633160a7b55ee1cc97 (#10327) (#10478)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-24 18:02:46 +08:00
Zeqiang Li e64301ad34 3.5.0 swappy (#10327)
* gles2/3 swappy
* vk swappy
* manually fallback in GL

Co-authored-by: Zeqiang Li <zeqiang-li@outlook.com.com>
2022-03-24 15:37:38 +08:00
kenshin 93f37f2b82 Optimize android download tasks. (#10274) 2022-03-21 19:53:11 +08:00
Cocos Robot f078686229 [ci skip][AUTO]: Automated clang-format update: 65cf4e5ef0f8b518442e457f69bf41e4fa994bed (#10393) (#10408)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-21 11:22:30 +08:00
qiuguohua 94f42b3c4b Add dynamic library export macro (#10393)
* Add dynamic library export macro
2022-03-21 11:17:11 +08:00
江战 cb0618f0d4 3.5 Android: okhttp impl websockets (#10384) 2022-03-21 09:46:49 +08:00
qiuguohua 6a16077bc5 SDL related interface encapsulation (#10385)
* SDL related interface encapsulation
2022-03-18 14:43:01 +08:00
qiuguohua 45d95dd285 Add destroy window event and recreate window event on windows platform (#10365) 2022-03-17 09:36:04 +08:00
Cocos Robot cd6b22312a [ci skip][AUTO]: Automated clang-format update: 28eb614cf3ba9a0eae9404d84073010e82279726 (#10344) (#10358)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-16 16:35:01 +08:00
qiuguohua 1a90cd9013 Windows platform handles multiple events at once (#10344)
* The windows platform handles multiple events at once
2022-03-16 10:33:37 +08:00
bofeng-song 65e89c2094 fix translucent problem due to SurfaceView‘s limit (#10228) 2022-03-02 17:47:27 +08:00
timlyeee c91db1f369 Fix ios device display effect (#10184)
* Fix ios device display effect
2022-03-02 10:27:51 +08:00
Cocos Robot 2cfc659779 [ci skip][AUTO]: Automated clang-format update: dc993f3861cb486d66fd4de1de2bf861b0d97b96 (#10211) (#10222)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-02 10:17:46 +08:00
bofeng-song 141128f148 refine context2d, reduce call from native to js (#10211)
* reduce c++ callback to js
2022-03-02 09:56:00 +08:00
timlyeee f175150b6c Cherry pick from v3.4.2 (#10182)
* supply a default context when surface destroyed (#4222)

* Fix loop audio would stop for ios system (#4254)

* IOS system has an uncertain state between foreground and background, and our condition sometimes miss the point to load buffers.
* Queue for 3 buffers might be too short to live, use 4 or even more instead.

* Use same mtx for write (#4220)
2022-02-25 13:52:31 +08:00
yangchao e9e47b9dba do not create window in server mode (#10161)
* add no window impl
* add empty win impl file
2022-02-24 14:41:04 +08:00
qiuguohua c082902fe4 Fix fps calculation error for linux and QNX (#10141) 2022-02-22 09:57:24 +08:00
minggo f08555248f fix conflict 2022-01-24 17:23:03 +08:00
Yun Hsiao Wu 14a17c9d22 license upgrade (#4210) 2022-01-24 17:18:47 +08:00
minggo 45f096ead8 fix compiling error 2022-01-24 16:42:39 +08:00
minggo 1552345596 Merge branch 'v3.4.2' into v3.5.0_merge_v3.4.2
Conflicts:
	cocos/platform/android/jni/JniCocosActivity.cpp
	cocos/platform/apple/JsbBridgeWrapper.mm
	cocos/platform/ohos/jni/JniCocosAbility.cpp
	cocos/renderer/gfx-metal/MTLCommandBuffer.mm
	external/config.json
2022-01-24 15:01:01 +08:00
timlyeee 83ecd19721 Divide foreground tasks and all-time tasks (#4206)
* Add JsbBridgeWrapper for ohos

* Divide Foreground tasks and all-time tasks

* implement a taskQ class

* Add ohos support
2022-01-24 10:25:05 +08:00
timlyeee 49c57bd9c5 Add JsbBridgeWrapper for ohos (#4204) 2022-01-21 11:10:38 +08:00
江战 8154648490 3.4.1 Android: Java flush game thread tasks (#4193)
* fix run on game thread

* save

* just flush java tasks, do not run gameTick

* reduce timeout to 50
2022-01-19 12:40:20 +08:00
timlyeee 9340b1e3cd remove local reference array (#4161) 2022-01-12 15:27:14 +08:00