Commit Graph

292 Commits

Author SHA1 Message Date
santy-wang c87577b809 Merge branch 'v3.3.1' of https://gitlab.cocos.net/publics/engine into v3.4 2021-09-09 13:33:35 +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 c412d3a815 support touch manager on PAL (#9281)
* support touch manager

* update inputmanager

* update event manager

* optimize code
2021-09-07 14:10:04 +08:00
PP 2435520c88 revert deprecate EventKeyboard.isPressed (#9268) 2021-09-01 13:35:54 +08:00
pandamicro d059d03461 Add macro.ENABLE_GLES_ANTIALIAS (#9243)
* Rename macro.ENABLE_WEBGL_ANTIALIAS to macro.ENABLE_ANTIALIAS

* Upgrade game

* Rename to  ENABLE_GL_ANTIALIAS

* Improve api doc

* Revert scheduler

* Add ENABLE_GLES_ANTIALIAS

* Set default gles antialias to false
2021-08-31 13:51:55 +08:00
PP 6bf458920c add enableAutoFullScreen deprecate info (#9251) 2021-08-30 10:25:10 +08:00
Santy-Wang c80722cd8f Revert "Match Creator's universal module resolution algorithm (#9174)"
This reverts commit ebf2754bc3.
2021-08-19 14:08:52 +08:00
Leslie Leigh (李的序) ebf2754bc3 Match Creator's universal module resolution algorithm (#9174) 2021-08-18 10:08:46 +08:00
PP b2bed360ca optimize system event type (#9130)
* support event callback type

update

* optimize eventKeyboard.keyCode type

* update

* update
2021-08-05 10:48:50 +08:00
Leslie Leigh (李的序) dbcc52cf1e Fix cc.debug (#9081) 2021-07-27 17:51:38 +08:00
PP 2ec06d5524 close screen.windowSize interface (#9047) 2021-07-23 14:40:44 +08:00
PP c8c74c351b [CHERRY-PICK] fix touch event not working after touch end on an inactive node (#8997) 2021-07-18 17:25:46 +08:00
PP 5b230d70c5 fix sys coding auto completion (#8995)
* fix sys coding auto completion

* fix ci
2021-07-16 19:05:33 +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
pandamicro 09a2eb2d2e Move director delta time to game and remove deprecated APIs (#8913)
* Move director delta time to game and remove deprecated APIs

* Small ts fixes

* Fix ci

* Fix module import

* Adaptation

* Improve usage

* Improve deprecation

* Fixes and improve setFrameRate logic

* Move game's time control functions to timer class

* Fix frame time counter

* Tweaks

* Tweaks

* Revert timer
2021-07-09 17:27:52 +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
PP fc1700e9ad optimize system event interface (#8883) 2021-06-25 11:32:50 +08:00
PP d85cee16df remove legacy adapter in Wechat PC game (#8626)
* support keyboardEvent on wx pc game

update

update

# Conflicts:
#	pal/input/minigame/keyboard.ts

* support mouse event

* move in gl.useProgram adapting

* remove legacy adapter

update

* update

update

update

update

* rename interface

* bind method
2021-06-24 11:37:16 +08:00
santy-wang e58499bb3f Merge branch 'v3.2.0' of https://gitlab.cocos.net/publics/engine into v3.3-merge 2021-06-22 16:59:04 +08:00
PP 4ffef31968 fix MouseEvent.MOUSE_UP (#8837) 2021-06-17 15:35:56 +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
Santy-Wang 68896f6cfa Merge pull request #8700 from cocos-creator/v3.1.1
merge V3.1.1
2021-05-21 15:48:53 +08:00
江战 2a2719a79c HarmonyOS support (#8679) 2021-05-21 15:42:37 +08:00
Santy-Wang 871b7afbdf Merge pull request #8695 from cocos-creator/v3.1.1
merge V3.1.1
2021-05-20 13:37:13 +08:00
PP 420c9f59d4 support system.getSafeAreaEdge() (#8654)
* support system.getSafeAreaEdge()

* remove legacy adapter

* remove code

* update
2021-05-17 18:12:13 +08:00
PP cfb260692f deprecate 'sys.IPHONE' and 'sys.IPAD', not remove it (#8640) 2021-05-07 11:26:09 +08:00
Jare Guo 18e0d6d72d Merge pull request #8623 from cocos-creator/v3.1-release
sync branch
2021-04-30 21:34:01 +08:00
PP 83176d4330 optimize deprecation (#8602)
* optimize audio deprecated

* optimize sys deprecated

* optimize MouseEvent TouchEvent deprecated

* update

* use `SystemEvent.EventType`
2021-04-30 00:15:45 +08:00
PP 1742562456 optimize deprecated 360 browserType (#8594) 2021-04-29 16:15:38 +08:00
santy-wang aa4a55aab5 Merge branch 'v3.1-release' of github.com:cocos-creator/engine into dev 2021-04-29 15:59:25 +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
Leslie Leigh (李的序) 08926421ce Add log method with verbose level; verbose on zero duration clip (#8519)
* Add log method with verbose level; verbose on zero duration clip

* Lint

* Rearrange DebugMode values
2021-04-26 15:20:08 +08:00
Zeqiang Li 641800cd9c fix float ratio on iphone7p (#8524)
* fix float ratio on iphone7p

* get pixelRatio from sys
2021-04-23 10:17: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
PP 7ed0e73a84 remove deprecate warning in engine (#8482)
* remove deprecated BrowserType usage

* remove deprecated OS usage

update

* remove deprecated Platform usage

* fix esLint
2021-04-19 14:14:51 +08:00
PP 9bb4c4f8ea support pal/system (#8441)
* support pal/app

update

update

* remove 'QQ_PLAY' and 'FB_PLAYABLE_ADS'

* rename system

update

* rename Language

* update

* update

* bind function in Game.ts

* rename system

* support system.getBatteryLevel()

* support pal/system on native

* support pal/system on minigame

* update

* fix esLint

* fix Circular dependency

* fix esLint

* use math/Size
2021-04-15 11:00:54 +08:00
YuLei Liao a7b726bfad make assert() as valid assertion function (#8408) 2021-03-31 13:43:39 +08:00
PP cd7e644694 implement audio on pal (#8255)
* Update logo in README

* add pal/audio

* deprecate property

* support wechat  game AudioPlayer

* unify minigame interface

* optimize module name

* support  native audio

# Conflicts:
#	@types/jsb.d.ts

* add runtime platform

* fix module

* support build native virtual module

update

update

* update module name

* remove jsb-audio.js

* revert @rollup/plugin-alias

* add quickCompiler field in cc.config.json

* fix audio can't stop when paused

* fix esLint & ci

* fix ci

update

* update ccConfigJson

* add NOTE

* readonly maxAudioChannel

* add description for interface OneShotAudio

* volume range

* range for seeking

* loadNative return Promise<unknown>

* remove quickCompile field in cc.config.json

Co-authored-by: pandamicro <lphuabin@gmail.com>
Co-authored-by: Jare Guo <jareguo@users.noreply.github.com>
2021-03-25 14:30:13 +08:00
Yun Hsiao Wu a99d078f46 adapt native gfx layer changes (#8350)
* fix precompile combinations

* remove memory pool type hacks

* sync gfx defines
2021-03-19 16:24:36 +08:00
ChiaNing 31d7c6ae24 Event bug fix when set node active false on touchStart (#8330)
* 修复单点触摸下,点击的节点被销毁后,后续点击全部失效

* 修复layout的节点onDisable后_usefulLayoutObj被清空没有初始化

* 修复单点触摸下,点击的节点设置active为false,后续点击全部失效

(cherry picked from commit 8dbcc264e51d29f18748813c3c387d232bc94eff)

* 移除监听器时判断是否是当前触摸点的监听器

* 取消预编译

* useless remove

* fix format

* update

Co-authored-by: DESKTOP-I10K06A\章 <772055549@qq.com>
2021-03-05 17:34:16 +08:00
zhefeng.zhang 9581d0c6b5 sync-2.4.5-pr-8254 (#8256)
* sync-2.4.5-pr-8254

* correction code

* Revert "correction code"

This reverts commit 0ba7eb1a15ad82dc033846f6ae00a5ef690135e5.
2021-02-25 15:26:45 +08:00
PP 6ee318daf4 revert youku platform (#8226)
* Revert "update package-lock (#8200)"

This reverts commit 5e5c3a579e.

* Revert "update build-engine version (#8195)"

This reverts commit ab36cecec0.

* Revert "update YOUKU sys info && engine building workflow (#8191)"

This reverts commit 255944f36c.

* update build-engine version

* edit publish branch

* udpate deps
2021-01-28 13:07:29 +08:00
PP bdae8e370d cache camera priority in event listener (#8216)
* Revert "cache first render camera (#8215)"

This reverts commit 4cdb7043c9.

* cut down touch move callback

* cache camera priority in event listener

* Revert "cut down touch move callback"

This reverts commit 19da61e3f16c3d1c14c1e8111b0da98b4997dea4.

* fix esLint
2021-01-27 15:56:56 +08:00
zhefeng.zhang 1d4d17cf2b sync 8192 (#8202) 2021-01-25 13:48:41 +08:00
PP 255944f36c update YOUKU sys info && engine building workflow (#8191)
* update YOUKU constant

* update sys info for YOUKU

* fix ts Lint

* fix lint
2021-01-23 17:14:45 +08:00
Santy-Wang d5c5c69768 sync #8173 (#8174)
* sync #8173

* fix lint
2021-01-21 17:33:51 +08:00
cary b3f6bb99b6 Fix recycle reference of node event processor. (#8134)
* Fix recycle reference of node event processor.

* fix eslint ci
2021-01-18 14:55:07 +08:00
pandamicro c6dad8c494 Merge render scene and improve naming for 2d render (#8142)
* format and tweek

* Refactor renderer: UI to 2D naming

* refactor root.ui to root.batcher2D

* Refactor UIBatchView to BatchView2D

* Fix issues

* Merge UI render scene to main render scene

* Improve camera scene check in forward pipeline

* Fix eslint ci

* skip js files
2021-01-15 11:43:09 +08:00