Commit Graph

286 Commits

Author SHA1 Message Date
江战 7423ccef65 Impl runOnGameThread on Android (#2577) 2020-06-24 15:31:25 +08:00
minggo 7efee066fd Remove duplicate (#2597) 2020-06-19 11:07:21 +08:00
minggo d381a16142 change namespace from cocos2d to cc (#2572) 2020-06-16 14:34:46 +08:00
minggo ac08833b56 remove CCPlatformDefine.h (#2565) 2020-06-15 16:00:27 +08:00
江战 4c2b647bba remove CCPlatformConfig.h / 3d-gfx (#2555) 2020-06-12 11:17:37 +08:00
minggo 7997a44f18 Remove webview (#2543) 2020-06-10 16:04:07 +08:00
江战 082f432d2a remove unused code / 3dgfx (#2487)
* remove \*.mk

* support Makefile

* update default template

* fix path

* fix field type

* link resource instead of copy

* update external

* fix travis

* fix ssize_t macro

* fix macro 2
2020-05-28 11:24:14 +08:00
江战 f0d2b6d268 update (#2459) 2020-05-19 14:21:14 +08:00
江战 1748a533a7 init pthread key p_key (#2460) 2020-05-19 14:02:12 +08:00
minggo 96cbe1e971 Android adapt (#2410)
* simplify get obb file path

* not get package name throung jni

* not get sdk version from android

* remove unneeded codes

* remove convertEncoding

* remove unneeded codes'

* remove unneeded codes

* simpify codes

* simplify codes

* remove unneeded codes
2020-04-27 17:14:06 +08:00
minggo 2082c30ea4 fix crash if enter background on Android (#2401)
* fix crash if enter background on Android

* break if recreate window error
2020-04-24 16:56:35 +08:00
Arnold 79fc8353d1 3dgfx add CI & cmake (#2350)
* use-cmake

* revert: enable gles3 for android

* compile with cmake only
2020-04-14 13:58:45 +08:00
minggo da1c03d8d9 implement fps limitation (#2333) 2020-03-26 18:04:32 +08:00
minggo 9be1356d67 System adapter (#2318)
* move View to engine on mac

* move View to engine on iOS

* add CC prefix for file names

* handle input events in engine on Android
2020-03-23 16:22:54 +08:00
minggo 2d3010f546 Editbox (#2294)
* mac support editbox

* fix compiling/runtime issue for iOS/Android

* prevent handling touch event if it is prevented

* make editbox work

* fix effect of editbox on android
2020-03-19 13:46:31 +08:00
coulsonwang bef04c6fc3 fix device pixel ratio (#2269)
* set device pixel ratio

* fix

* fix devicePixelRatio

* update review

* fix dpr

* remove unneeded code

* remove unneeed code

* fix

* remove getScrenScale
2020-03-17 11:29:48 +08:00
minggo fa511447e3 Android issue (#2247)
* change window handler to uintptr_t

* fix compiling error
2020-03-09 11:21:07 +08:00
minggo ee0ca9a3be android bind window handler (#2210) 2020-02-28 14:37:16 +08:00
minggo 2584fb3807 Remove gl dependence (#2192)
* remove CCConfiguration

* remove gl related header files
2020-02-26 15:51:29 +08:00
minggo 743f91a3a8 remove some unneed codes (#2182) 2020-02-25 18:33:41 +08:00
minggo 7ac05e123f remove unneed codes (#2180) 2020-02-25 16:04:18 +08:00
minggo b9c13b6a30 Android pause resume (#2179)
* remove unneed coces

* post onResume and on pause event
2020-02-25 14:35:48 +08:00
minggo dda8760df0 remove unneed codes (#2176)
* remove unneed codes

* remove unneed codes
2020-02-25 11:04:50 +08:00
minggo e693d0a237 get audio output sample rate and output frame count in C++ (#2175) 2020-02-24 18:14:00 +08:00
minggo bd68b01b4d Android native dpi (#2173)
* fix compiling error

* android get dpi in C++
2020-02-24 16:09:13 +08:00
minggo 20edb6a63e implement sensor events in C++ (#2171) 2020-02-24 15:42:58 +08:00
minggo adb387ada5 remove unneeded codes and fix jni implementation (#2154) 2020-02-20 12:03:14 +08:00
minggo 1bb0c717d0 fix macro redefine warning of platform defination (#2099) 2020-01-20 15:12:49 +08:00
minggo bb6b022d3a use native activity on Android (#2094) 2020-01-19 09:52:46 +08:00
Yun Hsiao Wu 83e4eb9903 pointer lock API support (#2054) 2020-01-07 15:56:14 +08:00
Yun Hsiao Wu 5c797d64c1 fix text positioning (#2031)
* fix android text positioning

* fix windows text positioning

* fix Mac/iOS text positioning
2019-12-30 17:48:09 +08:00
Cocos Robot 682a8ed3d7 Sync branch v2.1.3-release to v2.2.0-release 2019-09-17 19:52:38 +08:00
Knox c53a28c957 Fixed that video could not play when stopped (#1846)
* Fixed that video could not play when stopped

* refine code
2019-09-16 18:34:41 +08:00
Jare Guo 2fe69db75c Merge v2.1.3 into v2.2.0-release 2019-08-30 20:05:02 +08:00
minggo 95315c1a73 V2.1.3 update v8 android (#1817)
* use ndk's stl

* update external version: update v8
2019-08-30 17:37:58 +08:00
minggo 39f4b68302 V8 fix (#1816)
* use ndk's stl

* update external version: update v8
2019-08-30 17:24:54 +08:00
minggo f21dbcba3c Video player android (#1811)
* fix some video issues on Android

* revert some error commit
2019-08-29 11:34:48 +08:00
Cocos Robot 99bec00fd5 Sync branch v2.2.0 to develop 2019-08-02 18:17:55 +08:00
unace ca5c7fd25b [Android] fix an audio bug (#1788)
*  fix external player muting. add audio focus flag

Add ability to not stop sound & music on game start in android
This comes from https://github.com/cocos2d/cocos2d-x/pull/18640.

* [Android] fix an audio bug

fix an audio bug that audios are not paused when locking screen while notification drawer is showing.
2019-08-02 09:25:11 +08:00
unace 919d036a95 fix external player muting. add audio focus flag (#1785)
Add ability to not stop sound & music on game start in android
This comes from https://github.com/cocos2d/cocos2d-x/pull/18640.
2019-07-31 15:06:11 +08:00
PP 575c15bbed set default text color for editText (#1778) 2019-07-31 15:05:37 +08:00
knox 48250287ee refine code 2019-07-29 09:20:11 +08:00
knox 7f68a97cda improve getCurrentLanguage to android 2019-07-26 16:45:31 +08:00
Jare Guo 602804cd61 Merge pull request #1782 from minggo/v2.1.3
升级 v8
2019-07-26 13:39:16 +08:00
minggo 57fd102dd5 fix compling error on android x86 2019-07-26 11:34:57 +08:00
Jare Guo b3f4c1e979 Revert "Update v8 to 7.5.288.22 (#1772)" (#1779)
This reverts commit 144bb78337.
2019-07-25 10:20:55 +08:00
minggo 144bb78337 Update v8 to 7.5.288.22 (#1772)
* ios use v8

* make v8 work on iOS

* fix compiling error

* can build and run on android, but will crash

* use jsc for non arm64 devices and some other fix

* make macro more clear

* fix errors on windows
2019-07-20 14:59:04 +08:00
Cocos Robot 673e7621ad Sync branch v2.3.0 to develop 2019-07-17 14:31:06 +08:00
minggo 2801316866 fix accuracy of RGB value (#1773)
* fix accuracy of RGB value

* don't have to check less than 0
2019-07-16 17:45:41 +08:00
minggo fbc69aebeb can build and run on android, but will crash 2019-07-12 10:36:21 +08:00