Commit Graph

214 Commits

Author SHA1 Message Date
江战 8c41446e96 Add Android GPG keyboard & Mouse support (#15385)
* Add Android GPG keyboard & mouse support
2023-06-08 21:42:45 +08:00
mmyduckx 42816774d3 fix setFrameRate unit-test (#15369) 2023-06-08 11:31:57 +08:00
dogeFu 09e000266d feature : add EDITOR_NOT_IN_PREVIEW marco (#15354)
* feature : add marco for editor preview and refactor code with new marco

* refactor: replace GAME_VIEW with EDITOR_PREVIEW

* Revert "refactor: replace GAME_VIEW with EDITOR_PREVIEW"

This reverts commit e28953e9e7acbb49dc5bdc650b2ff65510d4b084.

* update cc config json

* refactor code

* remove uselese parentheses

* set ccglobal to be false

* skip global variable test case
2023-06-07 17:52:51 +08:00
mmyduckx d9f385e95c support Pacer to set specific frameRate without frame lost (#15350) 2023-06-07 17:38:09 +08:00
qiuguohua 1efd3d8599 Fixed safe areas requires dpr (#15275) 2023-06-05 11:08:24 +08:00
PP 6218525321 Revert "Windows devices input fix (#14073)" (#15229)
This reverts commit 64a9c8721d.
2023-05-30 17:14:11 +08:00
PP 35dfce2a18 fix: use onWidnowResize on RUNTIME_BASED (#15201) 2023-05-26 11:53:46 +08:00
Lorenzo Dezi 64a9c8721d Windows devices input fix (#14073)
* Windows devices  input fix

Pointer events are used

* Pull request fixes

Callback signatures and unnecessary condition statement

---------

Co-authored-by: Lorenzo Dezi <dezio95.ld@gmail.com>
Co-authored-by: pandamicro <lphuabin@gmail.com>
2023-05-25 09:40:11 +08:00
PP 9bb5b351be fix: loading empty wasm on native platforms (#15150) 2023-05-23 16:46:44 +08:00
bofeng-song 08063379f3 support splash for taobao & refine code (#15136)
* support splash for taobao & refine code
2023-05-23 09:41:16 +08:00
qiuguohua 641a2fe2a4 Release the listener when destroyed. (#15036) 2023-05-14 23:08:34 +08:00
PP 4811334259 fix: wasm loading in editor native engine && fix gulp build (#15012)
* fix: wasm loading in editor native engine

* fix: gulp build workflow
2023-05-10 13:46:45 +08:00
PP 5f9209b3a9 fix: resolve external protocol when instantiate wasm in Editor (#15008) 2023-05-09 14:04:49 +08:00
PP 0b353b6e14 feat: support general WASM module in engine (#14974)
* support pal/wasm module

pal/wasm

* support sys.Feature.WASM and WASM_SUPPORT_MODE

# Conflicts:
#	pal/system-info/web/system-info.ts

# Conflicts:
#	pal/system-info/web/system-info.ts

# Conflicts:
#	pal/system-info/web/system-info.ts

* optimize bullet module


* update physx module

update

* revert tsconfig

* optimize WebGPU wasm import

* fix native wasm instantiate

* support wasm in EDITOR and PREVIEW

* optimize variable name

* update comment

* optimize code

* Update cocos/misc/webassembly-support.ts

* add physx wasm (#11) by yiwenxue

* add physx wasm

* update physx wasm instantiate.

* update, rename, etc.

* download external in CI

* fix physX wasm init

* move out external wasm type

* update external-config.json

* expand node max-old-space-size

* use console.debug

---------

Co-authored-by: Yiwen <15225434259xue@gmail.com>
2023-05-08 18:02:17 +08:00
bofeng-song ec60647f06 Support the adaptation of Alipay mini games (#14984) 2023-05-08 17:45:08 +08:00
pandamicro 71a11a7a14 Merge remote-tracking branch 'origin/v3.7.3' into develop
# Conflicts:
#	.github/workflows/run_test_cases.yml
#	cocos/rendering/planar-shadow-queue.ts
#	native/cocos/renderer/pipeline/PlanarShadowQueue.cpp
2023-05-08 11:55:56 +08:00
mmyduckx 16e0f7a8f1 fix high frameRate screen use 60 framerate and refine logic (#14894)
* fix high refresh rate screen use 60 framerate

* fix EDITOR preview cannot load scene

* refine

* remove useless code

* refine

* refine
2023-04-27 11:24:05 +08:00
minggo a22d16bbe6 Merge branch 'v3.7.3' into merge_v3.7.3 2023-04-24 11:26:58 +08:00
mmyduckx 74acc482ac fix webxr raf do not run bug (#14885) 2023-04-21 15:32:18 +08:00
fqamic 36b69d4fd7 engine support to webxr (#14861)
* feat: input support to webxr
1.new webxr gamepad event
2.new webxr handle pose event
3.support webxr hmd pose event

* feat: split the frameMove function to support xr readability

* feat:Add webxrFrameMove for webxr

* improve:xr stands for globalThis.globalXR

* improve(xr):format code

* fix: webxr gamepad update cache error

* fix: webxr gamepad update cache error

* fix: code naming error

* fix: update cache right gamepad data error

* improve: any is enough for any | undefined

* improve: modify interface PoseInfo and IGamepadCacheInfo

* improve: declare IGamepadCacheInfo

* fix: globalThis.__globalXR is undefined

---------

Co-authored-by: linyuanyi <1111>
2023-04-20 23:23:15 +08:00
mmyduckx 361ada4fa3 add setTimeRAF and replace setTimeout in pacer (#14704)
* add setTimeRAF and replace setTimeout in pacer
2023-04-10 10:08:45 +08:00
mmyduckx 33c0aa1bf3 use wechatprogram subpackge default and speedup launch time (#14683)
* use wechatprogram subpackge default and speedup launch time

* move gl.texSubImage2D adapater to PAL

* refine

* add getApp declare

* fix texture rendering in device

* move bundle require insert to load-module
2023-03-31 16:22:57 +08:00
江战 cdfd194c4c Add HPE Feature Detetion and JNI Method Refactoring (#14633) 2023-03-26 16:26:45 +08:00
minggo bcc581dfd7 Merge branch 'v3.7.3' into develop_merge_v3.7.3 2023-03-24 10:57:28 +08:00
PP e01ac3ee05 add tracking issue for TODO item (#14638)
* issue 14637

* issue 14640: animation module

* issue 14642: serialize deserialize hack

* issue 7519: pal/image

* issue 14643: dynamic inject

* mark as NOTE

* issue 14644: native only

* issue 7512: pal/fs
2023-03-23 16:42:46 +08:00
qiuguohua b615b2c672 Add openharmony platform definition (#14617)
* Add openharmony platform definition
2023-03-22 16:11:51 +08:00
PP 3cb698c8aa add more jsb interface info && fix some types (#14628)
* add jsb interface info

* mark TODO

workaround

* fix type

* remove some new ts-expect-error

* fix type in strict mode
2023-03-22 15:22:09 +08:00
qiuguohua e68506916c Develop branch adapts to openharmony (#14582) 2023-03-20 14:18:52 +08:00
PP fa51b804b5 remove and ban @ts-expect-error (#14572)
* remove ts-expect-error usage in engine

* deprecate Scheduler interface

* remove JavaScriptCore

* set some engineInternal public property as getter setter

* fix build-declaration

* fix releaseManager export name conflict

* update scriptEngineType

* fix and update some comment

* remove  w_mat, w_pos, w_rot, w_scale

* update renderer

* fix setRootBufferDirty not binding on native

* optimize floatToHashString

* mark NOTE
2023-03-20 13:48:26 +08:00
bofeng-song 24aa09670b support sepereate engine for taobao mini game (#14596)
* support sepereate engine for taobao mini game
2023-03-20 10:14:25 +08:00
mmyduckx 38c0ed4f95 add wechatprogram platform support (#14580)
* add wechatprogram platform support
2023-03-15 14:13:24 +08:00
santy-wang 0a81bf445e Merge branch 'develop' of github.com:cocos-creator/engine into v3.7.2 2023-03-13 16:51:47 +08:00
PP 713e29e168 fix: failed to execute plugin script in editor extend plugin on simulator (#14423)
* fix: failed to execute plugin script in editor extend plugin on simulator

* add error listener
2023-03-01 17:46:43 +08:00
PP 5ccf9e33ee fix: wrong screen size on ByteDance iPad device (#14165) 2023-02-27 14:25:45 +08:00
qiuguohua 25a3619413 Repair the problem that only one music is played when multiple music is played in the same node (#14319)
* Repair the problem that only one music is played when multiple music is played in the same node

* Modify comments

* Define callback functions to avoid removing all listeners when offrunning
2023-02-27 13:49:17 +08:00
bofeng-song 882887cb9f support taobao mini game (#14324) 2023-02-22 10:34:17 +08:00
James Chen 60efd41c26 Merge pull request #14330 from cocos/v3.7.2
Merges v3.7.2 to develop
2023-02-22 09:40:48 +08:00
qiuguohua 1a369a2f18 Fix the problem that pointerlock cannot move infinitely (#14235) 2023-02-19 17:21:12 +08:00
qiuguohua ee86fc40bd Native platform modifies exit process (#14141) 2023-02-15 17:11:28 +08:00
pandamicro 8eb177b53d Merge remote-tracking branch 'cocos-for-editor/v3.7.0' into develop
# Conflicts:
#	README.md
#	pal/audio/minigame/player-minigame.ts
2022-12-30 19:30:21 +08:00
pandamicro 87fd1dac1f Merge remote-tracking branch 'cocos-for-editor/v3.6.3' into develop
# Conflicts:
#	native/cocos/platform/android/java/libs/game-sdk.jar
#	native/external-config.json
#	pal/audio/minigame/player-minigame.ts
2022-12-30 19:28:39 +08:00
oahc09 9860c66c63 improve:xr remote preview process controller stick value (#13935)
* improve:xr remote preview process controller stick value
2022-12-29 18:07:18 +08:00
bofeng-song 19ffc349b6 Make audio be independent of core module (#13948) 2022-12-29 15:32:08 +08:00
bofeng-song 0d0d74e7bf fix wrong init at native scene (#13936) 2022-12-28 17:07:28 +08:00
fqamic 1f928364f4 fix some xr devices stretch when splash-screen logo and add handle device key (#13915)
* fix: some xr devices stretch when splash-screen logo

* feat: xr handle device support button menu and button start
2022-12-28 11:56:35 +08:00
pandamicro afd22296b4 MIT license update and to new year 2023 (#13927)
* Cpp MIT license update and to date
* TS MIT license update and to date
2022-12-28 11:25:12 +08:00
minggo 5c90582715 fix merge typo 2022-12-21 17:32:51 +08:00
minggo bfeca12a09 Merge branch 'v3.6.3' into merge-v3.6.3 2022-12-21 17:26:22 +08:00
PP d255936cdb optimize audio adaption on Taobao (#13835)
* fix: onPlay

* fix: onPause

* don't call stop

* remove HACK
2022-12-16 15:16:42 +08:00
江战 f6854cd16e native introduce jsb.window (#13816) 2022-12-16 13:50:59 +08:00