minggo
a16bde520a
add reflection back, only for creator native ( #2863 )
...
* add reflection back, only for creator native
* include reflection for all native
* rename file name to have the same style
2018-06-15 11:59:12 +08:00
PP
7e1c5cd669
adapt native editBox ( #2859 )
2018-06-15 10:49:42 +08:00
PP
83a6aec888
remove platform-related code in editBoxImpl ( #2813 )
...
move KeyboardReturnType outside
2018-06-07 18:11:42 +08:00
minggo
d7e847a228
fix bug that off function can not work correctly ( #2789 )
2018-06-01 15:36:03 +08:00
James Chen
9a35994615
Supports DeviceMotion event. ( #2770 )
...
* MouseEvent readonly properties.
* Adds DeviceMotionEvent.js
* Supports DeviceMotion event.
* set devicemotion to null.
2018-05-31 17:21:13 +08:00
minggo
5a3a814186
editbox support ( #2747 )
...
* editbox support
* fix some bugs
2018-05-30 15:28:03 +08:00
James Chen
4e6de2b894
Handle all keyboard events. ( #2751 )
2018-05-28 23:34:06 +08:00
James Chen
0a15ee7d4f
Supports keyboard event. ( #2734 )
2018-05-25 14:59:35 +08:00
James Chen
3c5f779606
Cache supported extensions and support to get compressed texture extension object. ( #2725 )
...
* Empty implementation for Node.insertBefore and Node.replaceChild.
* Mouse event should contain `button` & `which` & pageX & pageY properties.
* Removes insertBefore assignment in HTMLElement.js.
* Cache supported extensions and support to get compressed texture extension object.
* Return an empty object if we found the extension but it's not in extensionMap.
2018-05-24 10:08:55 +08:00
James Chen
58e360ac89
Supports mouse event for desktop platforms. ( #2713 )
...
* Supports mouse event for desktop platforms.
* Adds MouseEvent.js
2018-05-22 20:11:09 +08:00
James Chen
2d7e3ade55
Reverts HTMLCanvasElement change in PR #2684 . ( #2700 )
...
* Reverts HTMLCanvasElement change in PR #2684 .
It's a bug of alignment value while reading texture. Adds _alignment variable in HTMLCanvasElement.
* Default value of width& height of Canvas is 0.
* Call PixelStorei before texImage2D in C++.
2018-05-21 09:54:36 +08:00
James Chen
68e635383b
Uses setPreferredFramesPerSeconds to control FPS for JSB. ( #2696 )
...
* Uses setPreferredFramesPerSeconds to control FPS for JSB.
* Empty implement for window.scroll .
2018-05-17 10:03:10 +08:00
James Chen
14eab56ec2
Fixes unneeded readyState setting in HTMLAudioElement.js ( #2691 )
2018-05-16 10:31:34 +08:00
James Chen
c094968b1b
Adds a new parameter (commandCount) to flushCommands, easily for debugging. ( #2689 )
2018-05-16 10:31:06 +08:00
James Chen
a7e15e80d7
Uses _bufferWidth, _bufferHeight of HTMLCanvasElement in gl.texImage2D. ( #2686 )
2018-05-15 15:47:56 +08:00
James Chen
e18164c106
The content buffer size of canvas should only be a value of multipling 2. Otherwise, text rendering may be wrong. ( #2684 )
2018-05-15 15:14:52 +08:00
James Chen
c2d8649762
Make Image be inherited from HTMLImageElement. ( #2677 )
2018-05-15 15:00:18 +08:00
James Chen
fa3783a991
Minor JS logic fixes in CCSys.js and MediaError.js. ( #2676 )
2018-05-14 15:26:33 +08:00
James Chen
9662eb539b
More jsb adapter fixes and adds HTMLScriptElement ( #2670 )
...
* jsb-adapter fix.
* reverts.
* tab -> spaces.
2018-05-13 10:29:34 +08:00
James Chen
cd07d03b7d
Removes wx API invocations for JSB projects. ( #2668 )
...
* Removes wx API invocation for JSB projects.
* sys.openURL fix for JSB.
* touches, mouse, keyboard capabilities check.
2018-05-11 18:00:40 +08:00
James Chen
16de00f09e
The textview of debugging info should also display whether GL opt mode is enabled. ( #2603 )
2018-04-26 16:51:34 +08:00
minggo
efee3b49ce
adjust codes to unify js_loadImage binding codes ( #2585 )
2018-04-24 16:37:51 +08:00
James Chen
42da2ed086
Fixes pixelStorei is aync method when it's invoked in texImage2D. ( #2578 )
2018-04-20 19:34:21 +08:00
James Chen
c8dd586c19
minor fix in EventTarget.js.
2018-04-20 10:16:59 +08:00
James Chen
f3a44e90dc
window.__gl -> window.__ccgl, window.canvas -> window.__cccanvas. Touch logic is moved to EventTarget.
2018-04-20 10:15:13 +08:00
James Chen
ec80e1143e
Updates jsb scripts.
2018-04-19 14:11:49 +08:00
James Chen
707bc6c5fc
Removes WindowProperties.js file.
2018-04-04 17:55:58 +08:00
James Chen
0ec2b387d0
FileReader API fix.
2018-04-04 17:55:17 +08:00
James Chen
801dc9c5dc
XMLDOM isn't devloped by cocos, so remove the licence since the original source files also don't include a license information. but it's MIT in fact.
2018-04-04 17:55:01 +08:00
James Chen
ebef9795a0
Merge runtime builtin scripts.
2018-04-03 20:55:02 +08:00
minggo
6b10483475
remove unneeded file
2018-03-30 11:05:27 +08:00
minggo
7204aab00e
fix license
2018-03-28 16:45:14 +08:00
minggo
d9c0236e50
jsb adapt
2018-03-26 14:54:34 +08:00
minggo
6e37e154f5
JSB adaption
2018-03-26 10:54:09 +08:00