Commit Graph

84 Commits

Author SHA1 Message Date
James Chen 8791443f3d Optimize code size: strip XR relevant code by USE_XR constants (#18321)
* Optimize code size: strip XR relevant code by USE_XR constants

* Update SplashScreen

* Package size doesn't need to check xr module
2025-02-13 10:30:35 +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 f1b02ad473 [v3.8.5] Mangle private properties in touch-manager.ts (#17868)
* [v3.8.5] Mangle private properties in touch-manager.ts

* Fix eslint errors in mouse-input.ts
2024-11-18 09:34:38 +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
James Chen 32727868b0 Reduce the generated javascript code size (#17491) 2024-08-06 18:14:44 +08:00
qiuguohua 1c844432d6 Fix touchend event exception when ENABLE_MULTI_TOUCH is false (#17183)
Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2024-06-20 09:49:15 +08:00
minggo 24f3f6583b support mouse leave/enter envents (#16886) 2024-04-10 15:14:48 +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
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
pandamicro 0cb410d5da Merge pull request #16127 from cocos/v3.8.1
Merge V3.8.1
2023-08-29 17:01:37 +08:00
PP 9daf2c663c upgrade nodejs to 18.17.0 (#15899)
* upgrade nodejs to 18.17.0

fix compile-native-ts

fix type

fix eslint

fix node version on native-binding

test native ci

fix eslint

fix jest version

upgrade ts-jest

fix

reduce EXPECTED_CAPACITY

update ccbuidl

Revert "test native ci"

This reverts commit 795c8c68cf7ff7f2561db4414689ad3f6aa5c1f7.

# Conflicts:
#	scripts/native-pack-tool/package-lock.json

* detect node version

# Conflicts:
#	package.json

* use engine-strict option

* Update .nvmrc

* Update pal/input/web/accelerometer-input.ts

* fix conflict

* fix compile native ts

* download external in compile native ts

* fix
2023-08-28 15:52:24 +08:00
江战 88d585acc7 accept non array type (#16095) 2023-08-28 09:44:52 +08:00
江战 63668b2a10 remember connected gamepad count (#16023) 2023-08-21 10:48:32 +08:00
Leslie Leigh (李的序) 3a470a6dff Add utilities to check integrity of pal implementations (#15694)
* Add utilities to check integrity of pal implementation

* Fix screen adapter

* Fix game pad input

* Apply suggestions from code review

Co-authored-by: PP <chinese1236@qq.com>

* Add license

---------

Co-authored-by: PP <chinese1236@qq.com>
2023-07-13 14:18:53 +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
江战 8c41446e96 Add Android GPG keyboard & Mouse support (#15385)
* Add Android GPG keyboard & mouse support
2023-06-08 21:42:45 +08:00
PP 6218525321 Revert "Windows devices input fix (#14073)" (#15229)
This reverts commit 64a9c8721d.
2023-05-30 17:14:11 +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
bofeng-song ec60647f06 Support the adaptation of Alipay mini games (#14984) 2023-05-08 17:45:08 +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
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
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
qiuguohua 1a369a2f18 Fix the problem that pointerlock cannot move infinitely (#14235) 2023-02-19 17:21:12 +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
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
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 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
fqamic 71314f0e81 merge xr platform function codes (#13360)
* feat: add xr settings for xrEnv and xrType

* improve: remove redundant code for xr interaction

* improve: remove redundant code for frameMove

* fix: xr jsb bind adapt to swig

* feat: adapt to xr preview mode, add handle simulation event
2022-11-14 17:12:25 +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
江战 7ccd14e6e6 JSB export math class : Vec2/Vec3/Vec4/Quat/Mat3/Mat4/Color (#12968) 2022-10-31 17:24:54 +08:00
minggo a354281d7e Fix core import issue (#13148)
* import binarySearchEpsilon from core module

* remove unused files

* import easing from core module

* use array instead

* do not export MutableForwardIterator

* do not export binarySearchBy

* print deprecated information in runtime
2022-10-26 15:19:26 +08:00
ycg e31abca228 Wrong mouse wheel direction on PCWechat (#13101) 2022-10-20 17:59:37 +08:00
ycg 2696288b3f Fix: Left mouse button swipe on WeChat PC is invalid (#13110) 2022-10-20 16:50:29 +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
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 affbf7b90d fix mouse button in MouseMove Event (#11661) 2022-06-27 11:58:14 +08:00
PP ebb9b800b3 remove canvas access warning in Editor (#11709) 2022-06-27 11:50:48 +08:00
PP e44fcbc581 use windowSize instead of screenSize for minigame platforms (#11468) 2022-06-14 16:12:25 +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 d65e8efe8b revert package-lock.json (#11422)
* revert to original lock file

* update

* Revert "ESLint Fix"

This reverts commit 5ad729903d810ae9847073dc4fe454a58709f1bf.
2022-06-08 22:40:56 +08:00
PP c0734c9420 downgrade lock (#11419)
* downgrade lock

* fix ci

* update lock
2022-06-08 20:50:30 +08:00
PP 2b806c6a5a fix screen size && touch event on Alipay platform (#10666) 2022-04-06 16:22:22 +08:00
PP fa20eb69e1 optimize multi-touch on ByteDance platform (#10086) 2022-02-11 18:18:37 +08:00
alpha e5040dc3ee [3.4.1] Fix bug multi touch (#9917)
* 🐛 fix multi touch can not disable

* Update pal/input/touch-manager.ts

Co-authored-by: PP <chinese1236@qq.com>

* Update pal/input/touch-manager.ts

Co-authored-by: PP <chinese1236@qq.com>

Co-authored-by: PP <chinese1236@qq.com>
2022-01-06 18:22:32 +08:00