You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
752 B
JavaScript
23 lines
752 B
JavaScript
var WebGLInputMobile = {
|
|
$instances: [],
|
|
|
|
WebGLInputMobileRegister: function (touchend) {
|
|
var id = instances.push(null) - 1;
|
|
|
|
document.body.addEventListener("touchend", function () {
|
|
document.body.removeEventListener("touchend", arguments.callee);
|
|
{{{ makeDynCall("vi", "touchend") }}}(id);
|
|
});
|
|
|
|
return id;
|
|
},
|
|
WebGLInputMobileOnFocusOut: function (id, focusout) {
|
|
document.body.addEventListener("focusout", function () {
|
|
document.body.removeEventListener("focusout", arguments.callee);
|
|
{{{ makeDynCall("vi", "focusout") }}}(id);
|
|
});
|
|
},
|
|
}
|
|
|
|
autoAddDeps(WebGLInputMobile, '$instances');
|
|
mergeInto(LibraryManager.library, WebGLInputMobile); |