Skip to content

v2.2.0: Release 2.2.0

Compare
Choose a tag to compare
@mgh mgh released this 06 Mar 09:21
· 284 commits to master since this release

export the native window API so native plugins can detect when
games are listening for events on the window object

import devkit.native.Window as nativeWindow;

nativeWindow.on('newListener', function (type, cb) {
  console.log("new native listener for", type);
});

window.addEventListener("devicemotion", function () { ... });

required for devkit-accelerometer v3.0.0