Commit Graph

67 Commits

Author SHA1 Message Date
James Chen 243b622592 Strip minigame (#18288) 2025-02-07 13:53:56 +08:00
James Chen e5aac8f591 [v3.8.6] Optimize code size for input.ts, tiled-layer.ts, minigame pal (#18159)
* [v3.8.6] Optimize code size for input.ts and tiled-layer.ts
2025-01-13 11:04:50 +08:00
James Chen 42384e20f1 385 revert $ (#17912)
* Remove dollar suffix for private property definition.

* (\._[a-z][a-zA-Z0-9]{3,})\$ to \1

* (protected _[a-z][a-zA-Z0-9]{3,})\$ and (public _[a-z][a-zA-Z0-9]{3,})\$ to \1

* ( _[a-z][a-zA-Z0-9]{3,})\$([^0-9]) to \1\2

* Remove $ suffix manually for gfx-webgl backend.

* (public [a-z][a-zA-Z0-9]{3,})\$ to \1

* (\.[a-z][a-zA-Z0-9]{3,})\$ to \1


* Remove mangle hack.
2024-11-25 13:47:56 +08:00
James Chen 888480783a fixed #17866: [bug] EventTouch.getUIDelta return wrong delta values on native platforms (#17895) 2024-11-21 15:36:01 +08:00
James Chen 251726b98e [v3.8.5] Make dispatchImmediately variable be a const value which will help treeshaking. (#17853) 2024-11-18 09:43:47 +08:00
James Chen e77c0be21a [v3.8.5] cclegacy.xxx invocations should be converted to relevant type which will help refactoring and error reporting. (#17753)
* [v3.8.5] cclegacy.xxx invocations should be converted to relevant type which will help refactoring and error reporting.

* Update model.ts and pipeline-scene-data.ts

* Update @engineInternal comments.
2024-10-31 09:53:41 +08:00
James Chen f4ccf3a8bb [v3.8.5] Support inline enum and mangle private variables to reduce engine size. (#17703) 2024-10-15 10:17:16 +08:00
minggo 67b8d4b953 rename event name to fix event name conflict with NodeEventType.MOUSE_ENTER/MOUSE_LEAVE (#17576) 2024-08-23 14:41:20 +08:00
James Chen 32727868b0 Reduce the generated javascript code size (#17491) 2024-08-06 18:14:44 +08:00
James Chen 43a20103b9 fixed #17031: Button could not be clicked after an exception is thrown while dispatching mouse/touch event. (#17032) 2024-06-04 16:07:48 +08:00
minggo 24f3f6583b support mouse leave/enter envents (#16886) 2024-04-10 15:14:48 +08:00
James Chen 4cba077734 fixed #14735: CocosApplication::handleException could not be invoked if there is an error triggered in touch event callback. (#16830)
* fixed #14735: CocosApplication::handleException could not be invoked if there is an error triggered in touch event callback.

* Don't try catch script errors in se::Object::call. Otherwise, jsb.onError & CocosApplication::handleException will not be invoked in debug mode.
2024-03-28 09:58:49 +08:00
minggo ea8ca11706 replace NodeEventType.SIBLING_ORDER_CHANGED with NodeEventType.CHILDREN_ORDER_CHANGED (#16246)
* replace NodeEventType.SIBLING_ORDER_CHANGED with NodeEventType.CHILDREN_ORDER_CHANGED
2023-09-13 14:06:43 +08:00
PP 0e53dde603 feat: support touch info query in input module (#16235)
Co-authored-by: finscn <finscn@gmail.com>
2023-09-13 10:44:20 +08:00
PP 4c0f664960 [AOT] add type for AOT engine (#15527)
* fix object

* fix action

* fix type in instantiate.ts

* fix type for NodeEventProcessor

node_event_processor

* fix type in input.ts

* fix particle system

* fix color type

* fix CI

* add tracking issue
2023-06-28 11:24:40 +08:00
PP 509d73b27d merge branch v3.8.0-aot (#15421)
* PR1: add explicit function return type (#15311)

* PR4: add explicit function return type (#15314)

* [ci skip][AUTO]: Automated code generating update: 8843bfe54cd3f8e6f84432948716c8d130ecb233  (#15314) (#15357)

Co-authored-by: cocos-robot <cocos-robot@cocos.com>

* add function return type

* fix version checking

* fix return type

---------

Co-authored-by: Cocos Robot <48829427+cocos-robot@users.noreply.github.com>
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2023-06-13 18:08:45 +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
minggo a22d16bbe6 Merge branch 'v3.7.3' into merge_v3.7.3 2023-04-24 11:26:58 +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
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
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
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 03b5d4c3fd Merge branch 'v3.6.3' into merge-v3.6.3 2022-12-08 15:46:09 +08:00
江战 f2d747f9c7 Fix: user handler exceptions lead to endless loop (#13647) 2022-12-05 14:47:54 +08:00
fqamic 2316dc77c1 improve(xr):Rename Handset to Handheld (#13558)
Co-authored-by: linyuanyi <1111>
2022-11-28 11:30:27 +08:00
fqamic d4055f7e32 new basic capabilities of supporting handset ar and webxr (#13420)
* feat: add the basic capability of handset ar native

* feat: add handset input device, for ar camera pose

* feat: native pack tool supports xr platform name

* feat: web gl context supports webxr

* feat: webxr has been converted to screen coordinates via camera

* fix: pr ts-expect-error undefined xr

* feat: support webxr, and remove ar redundant code

* fix:xr-spaces gradlew permission error

* feat: revert redundant ar engine feature

* fix: eslint check error

* feat: remove redundant code

* fix: eslint check warning

* adjust armodule process in forward stage, mtl texture and jsb

* fix: exlint warning, and add license

* adjust ar lib and interfaces

* change webxr check interface

* merge external arlib header and move it to engine

* improve: update native external version

* move ar background stage to xr/rendering and move its init to webxr device in xr plugin

* fix format error

* fix format error

* adjust jsb_ar_manual, ARModule, ARBackground

* adjust arbackground

Co-authored-by: Parryzhai <1306895355@qq.com>
Co-authored-by: MoHai <1192652394@qq.com>
2022-11-24 13:33:50 +08:00
timlyeee 687bf38897 revert part of commit (#13472) 2022-11-22 11:44:33 +08:00
timlyeee e48b1f225e add windowId as a parameter for MouseWheel (#13433)
* add windowId as a parameter for MouseWheel

* set window id to 1 by default
2022-11-21 10:32:51 +08:00
PP f64250a9e3 support dispatching event on native platform (#12705)
* support dispatching event on native platform

* pass widnowId

* fix ci
2022-11-14 10:33:48 +08:00
minggo 83a2717fac Fix module import (#13140)
* fix core module import style

* import murmurhash2_32_gc from core module

* do not export visibleRect
2022-10-25 16:38:38 +08:00
minggo 0d7c5c8f56 move cocos/core/scene-graph to cocos/scene-graph (#12868)
* move `cocos/core/scene-graph` to `cocos/scene-graph`
* move some files in `cocos/core/components` to `cocos/scene-graph`:
  - component.ts
  - component-event-handler.ts
  - component-event-handler-schema.ts
* move some files in `cocos/core/components` to `cocos/misc`: 
  - missing-script.ts
  - model-renderer.ts
  - renderer.ts
  - camera-component.ts
* move  `cocos/core/components/system.ts` to ``cocos/core/system.ts``
2022-09-26 11:02:22 +08:00
林玮 785fd91511 Add multi-windows support (#12243)
Co-authored-by: bofeng.song <bofeng.song@chukong-inc.com>
2022-09-15 14:55:44 +08:00
PP e6e964af15 fix: EventTouch.getAllTouches() should not include changedTouches when it's TOUCH_END (#12700) 2022-09-13 17:08:57 +08:00
Zhang mingzhen 2879bb044b add deprecated tag of "Renderable2D" (#12606)
* add deprecated tag

* move it to 2d

* supplement other 2d deprecated tags

* fix CI

* add policy description

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-09-01 10:17:11 +08:00
QingliWang 6a8f53b186 Add features for XR developement. (#12413)
* Change Android mainloop, add global config and template projects for XR.

* Change gfx/gles device's process flow for XR, working with other PRs, waiting.

* Change gfx/Vulkan device's process flow for XR, working with other PRs, waiting.

* Change render process for XR.

* Develop XR input and events.

* Develop 3D feature of UI widgets and raycast effect for XR.

Co-authored-by: fqamic <fqamic@vip.qq.com>
2022-08-22 16:34:45 +08:00
PP 016418626d update deprecated info (#11985) 2022-07-14 17:17:32 +08:00
王凯鹏 6797a841f6 fix system_event.on not working in gameview mode (#11891) 2022-07-08 12:55:39 +08:00
PP 151eeb3dce deprecate exported x-deprecated interface (#11802)
* deprecate exported x-deprecated interface

* update

* update docs
2022-07-01 21:54:15 +08:00
PP 7f41b05cfe support top level deprecate check (#11630)
* support __checkObsolete__

update

update deprecate info

update

fix ci

fix ci

update

* rename interface

* cache namespace proxy

* move deprecate info to version deprecated

* consider undefined Proxy
2022-07-01 11:55:05 +08:00
王凯鹏 d0a8a4fbc4 support gameview (#11514) 2022-06-20 13:36:34 +08:00
PP d0bd6b7376 support input dispatch event for Editor (#11471)
* support input dispatch event for Editor

* update internal

* fix eslint

* fix bug

* update
2022-06-14 16:10:18 +08:00
PP 09ce5e85a8 correct MOUSE_WHEEL comment (#11191)
* correct MOUSE_WHEEL comment

* update
2022-05-24 11:55:27 +08:00
pandamicro dba83c270d Fix multi blank lines (#11116) 2022-05-17 11:56:06 +08:00
Santy-Wang 23de9188ba V3.5 docs (#10898)
* adjust api docs and delete useless annotation

* delete useless annotation
2022-04-27 15:22:22 +08:00
Santy-Wang e82cec17ac update docs (#10796)
* update docs

* update docs more

* refine

* refine
2022-04-20 18:47:53 +08:00
Santy-Wang a963881d4e add category config file for docs (#10589)
* add category config file for docs

* add input module

* adjust name
2022-03-30 18:32:37 +08:00
Santy-Wang ab82e1b42d remove hidden (#10414)
* remove hidden

* fix typo

* fix unit-test

* turn on auto fix
2022-03-22 15:11:16 +08:00
PP 09f5a029ab support EventDispatcherPriority (#9976)
* expect error requestPermission undefined

* support EventDispatcherPriority

* Revert "expect error requestPermission undefined"

This reverts commit fb08ba61987600c8a9237b4202dc46e22e298636.

* fix systemEvent touch event

* Revert "revert deprecate system event (#9941)"

This reverts commit d69d18dc7b.

* optimize code
2022-01-14 10:48:13 +08:00
PP d69d18dc7b revert deprecate system event (#9941) 2022-01-07 17:27:54 +08:00
PP bc0f912279 fix keyboard event listening on mobile (#9935)
* fix keyboard event listening on mobile

* update deprecation info
2022-01-06 23:05:56 +08:00