Commit Graph

11 Commits

Author SHA1 Message Date
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
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 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 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
minggo 7204aab00e fix license 2018-03-28 16:45:14 +08:00
minggo 6e37e154f5 JSB adaption 2018-03-26 10:54:09 +08:00