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
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
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
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
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
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
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
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
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
PP
f5511f4c87
Revert "Revert "optimize interface in screen module ( #9176 )"" ( #9490 )
...
This reverts commit b88d4845cc .
2021-10-15 10:21:04 +08:00
pandamicro
b88d4845cc
Revert "optimize interface in screen module ( #9176 )"
...
This reverts commit 4735476945 .
2021-10-14 23:07:23 +08:00
PP
4735476945
optimize interface in screen module ( #9176 )
...
* optimize interface in screen module
* remove DPR calculating
* update screen-adapter init
* set screen.resolutionScale as 1 by default
* remove pixelRatio getter in system-info
* remove sys.windowPixelRatio access
* optimize screen.windowSize
update
* convertToCocosScreenSpace
* change resolution-change to window-resize
* fix native UI
update
update UI
update UI
* optimize screen init
* fix subContextView
* fix root resize
* fix precision issue on Metal render end
* sys.windowPixelRatio
* use warnID
* remove screen.convertToCocosScreenSpace
* put private property and method together after public ones
* warnID
* fix landScape on CocosPlay
* fix DPR on vivo platform
* fix CI
2021-10-14 22:16:34 +08:00
PP
f433551d1d
support system feature query ( #9428 )
...
* support feature query in pal/system-info
* support sys.hasFeature and deprecate sys.capabilities
* remove deprecated usage
* support input feature query
update
* IMAGE_BITMAP
* INPUT_TOUCH
* WEBGL
* support WEB_VIEW, VIDEO_PLAYER, SAFE_AREA query
* rename INPUT_XXX to EVENT_XXX
* support device-manager
update
update
update
* add NOTE
* export deviceManager from gfx
* fix circular dependency
* fix wechat devtools
update
* Revert "fix circular dependency"
This reverts commit ba8a6c0e2e4fa6b2015ae438a4c9a5da94b9bf46.
* Revert "export deviceManager from gfx"
This reverts commit 14b26ca0e3f6e0dce32c37bd668c65193dbd366f.
* Revert "support device-manager"
This reverts commit 010a910e56e1ee2fe9726629fca163fc24ed5b37.
# Conflicts:
# pal/system-info/enum-type/feature.ts
* update
update
* use INPUT_TOUCH for sys.capabilities
* update
2021-10-14 10:29:36 +08:00
PP
5878829d51
refactor UI pointer event dispatcher ( #9363 )
...
* optimize node event processor
# Conflicts:
# cocos/core/scene-graph/node-event-processor.ts
# cocos/core/scene-graph/node.ts
* support pointer event dispatcher
* remove event manager, event listener
# Conflicts:
# cocos/core/director.ts
# cocos/input/index.ts
* remove docs for event-manager
* fix pointer lock on web
* BREAKING-CHANGE: ui-transform.isHit interface
ud
* fix CI
* fix CI
* activeInHierarchy
2021-09-24 13:34:43 +08:00
PP
81fdaf346d
support input module ( #9327 )
...
* support input module
* don't export eventManager
2021-09-18 19:25:08 +08:00
PP
ccd505ad14
migrate Engine Input Event into PAL ( #9320 )
...
* optimize input module
* rename
* fix CI
* update input-box.d.ts
2021-09-15 13:51:38 +08:00
PP
97b3657549
migrate input module out of platform ( #9296 )
...
* migrate input module out of platform
* revert EventKeyboard.isPressed deprecation
* fix CI
2021-09-07 15:24:43 +08:00
PP
5a4bed2379
support inputManager.frameDispatchEvents() in main loop ( #8954 )
...
* support pollEvent() API on pal/input
update
update pal
* support inputManager.frameDispatchEvents() in main loop
* remove event-manager module
* fix CI
* fix _glView
* fix CI
* fix director pause
* update for
2021-07-16 13:45:01 +08:00
PP
d7067c29c8
deprecate interface in View module && support pal/screenManager ( #8836 )
...
* remove BrowserGetter
* deprecated view.adjustViewportMeta
* deprecate view.enableAutoFullScreen and view.isAutoFullScreenEnabled
* remove view._adjustSizeKeepCanvasSize
* remove view._convertMouseToLocation, view._convertTouchWidthScale and view._convertTouchesWithScale
* remove view._originalDesignResolutionSize
* deprecate cc.winSize and cc.visibleRect
update
* access local winSize
* access local visibleRect
* deprecate view.getVisibleOrigin view.getVisibleOriginInPixel
* Revert "deprecate view.getVisibleOrigin view.getVisibleOriginInPixel"
This reverts commit 1ae9e1d5c51d8c701eaa2e4a65cd4c17e5f6d971.
* Revert "deprecate cc.visibleRect"
* optimize screen module
update
* update
update
* optimize deprecation info
* rename pal/system to pal/systemInfo
* update pal/systemInfo access in engine layer
* support pal/screenManager
* update pal/screenManager access in engine layer
* fix bug
* optimize deprecation info
* fix auto fullscreen
* fix ci
* fix ci
* update change request
update
update
* fix CI
2021-07-09 18:57:03 +08:00
PP
6487e67b36
optimize enum type in SystemEvent module ( #8912 )
...
* export KeyCode
* rename to SystemEvent.EventType
remove legacy import
update pal
* systemEventType =value type, SystemEvent.EventType =enum type
* support KEY_PRESS KEY_RELEASE, deprecate KEY_UP event
* add back Event.NO_TYPE
* update pal/input interface
* fix ci
* Revert "support KEY_PRESS KEY_RELEASE, deprecate KEY_UP event"
This reverts commit 623385e5f8e6c133f287753654b21a5bb7adafee.
# Conflicts:
# pal/input/minigame/keyboard.ts
* remove KEY_PRESS event
* remove legacy usage of macro.KEY
* fix KeyCode spell
2021-07-08 16:39:03 +08:00
Yun Hsiao Wu
d1d077c098
gfx: sRGB texture support ( #8822 )
2021-06-17 18:09:57 +08:00
PP
7e55ddf133
support SystemEvent.Keyboard enum type ( #8785 )
...
* support SystemEvent.Keyboard enum type
update
update
update
update
# Conflicts:
# cocos/core/platform/event-manager/system-event.ts
update pal
mark macro.KEY as warning
mark
update
update
* support right shift, alt and ctrl enum
* support web keyCode map
# Conflicts:
# pal/input/web/keyboard.ts
* support num enter key enum
* rename num_slash to num_divide
* support native keyCode map
# Conflicts:
# pal/input/native/keyboard.ts
* update enum
* rename Keyboard to KeyCode
* update deprecated
* update
2021-06-09 15:12:51 +08:00
PP
4914116834
optimize SystemEventType and NodeEventType ( #8678 )
...
* remove recomendation for usage of string type of event
* deprecate KEY_DOWN KEY_UP event
* support SystemEventType.KEYBOARD_DOWN && SystemEventType.KEYBOARD_UP
* deprecate some useless properties
* implement keyboard pal
* remove SystemEventType toString()
update
* fix instantiating EventTouch
* optimize deprecated info
* support native keyboard KEYBOARD_DOWN event
* remove usage of event code
* fix deprecating pure value properties
* optimize deprecating Event type
* optimize deprecating getEventCode()
update
* optimize deprecating eventType
* optimize deprecating isPressed
* optimize deprecating keybaord event
* optimize deprecating rawEvent
* Revert "fix deprecating pure value properties"
This reverts commit 60d586532496fa1f422f05c54a922b86d1dc96ee.
* fix deprecate pure value properties
* Revert "fix deprecate pure value properties"
This reverts commit a83f1725fedfbd7af445892912aacab8e8502147.
* fix deprecating pure value property
* update
updaate
* deprecate some EventType enum in SystemEventType and NodeEventType
* optimize
* update
update
* update
* update
* fix CI
* fix CI
* fix Circular dependency
* fix Circular dependency
2021-06-07 19:06:29 +08:00
PP
0b0739990e
fix accelerometer bug on QQ browser and WeChat iOS end ( #8632 )
...
* fix accelerometer bug on QQ browser
* fix accelerometer on WeChat iOS end
* fix baidu offAccelerometerChange
2021-05-17 12:40:46 +08:00
PP
13faf6d8ff
fix input support info on Web platform ( #8673 )
2021-05-14 11:58:30 +08:00
PP
1e10ff54f9
FIX_CI: failed to access canvas ( #8655 )
2021-05-11 10:45:14 +08:00
PP
1dfce47a82
fix error on PointerLock case ( #8603 )
...
* fix mouseEvent delta when pointer is locked
* don't emit InputEvent when mouseDown event is fired on window
2021-04-30 11:54:54 +08:00
PP
bea63534e9
fix MouseEvent.button when mouse tracking ( #8582 )
...
* fix MouseEvent.button when mouse tracking
* update
2021-04-28 21:45:51 +08:00
PP
c89fe8bfdd
compatible movement data in MouseEvent on Web && fix keyCode in keydown event ( #8578 )
...
* compatible movement data in MouseEvent on Web
* revert keypress Event to keydown
2021-04-28 17:28:50 +08:00
PP
25b6f15410
fix Accelerometer bug ( #8573 )
...
* fix accelerometer on wechat
* fix baidu
* fix bytedance
* fix alipay
* fix xiaomi
* fix runtime
* fix orientation on CocosPlay
* remove legacy adapter
* remove canvas warning
2021-04-28 17:21:49 +08:00
PP
7e5da07c8a
fix preview toolbar ( #8557 )
2021-04-26 15:43:00 +08:00
PP
4e61a9b568
fix window 'keydown' event swallow EditBox input event on Web ( #8548 )
2021-04-25 19:37:26 +08:00
PP
21fdc92c35
fix warn in Editor ( #8487 )
2021-04-19 18:44:24 +08:00
PP
86f20da0f0
support pal/input ( #8472 )
...
* support pal/input
update
* update
* fix esLint
* support minigame
* support pal/input on minigame
* remove minigame.isSubContext
* support native
update
* deprecate static property on EventMouse
* deprecated static property in EventTouch
* remove TODO
* remove x y position in MouseWheel Event
* remove TODO
* remove temp code
* fix esLint
* update AccelerometerIntervalMode
* remove legacy code in JSB
* fix esLint
* optimize AccelerometerInputSource.setInterval
* fix esLint
* optimize code
* add more details for documentation
* update
* don't pass game.canvas to inputManager.registerSystemEvent
* optimize
* Revert "remove x y position in MouseWheel Event"
This reverts commit b521ec4948d693b420887cdeb2f5f3afc1500066.
# Conflicts:
# @types/pal/input.d.ts
* update
* fix esLint
* fix esLint
2021-04-19 16:24:42 +08:00