You can not 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
744 B
23 lines
744 B
var WebGLInputMobile = { |
|
$instances: [], |
|
|
|
WebGLInputMobileRegister: function (touchend) { |
|
var id = instances.push(null) - 1; |
|
|
|
document.body.addEventListener("touchend", function () { |
|
document.body.removeEventListener("touchend", arguments.callee); |
|
Runtime.dynCall("vi", touchend, [id]); |
|
}); |
|
|
|
return id; |
|
}, |
|
WebGLInputMobileOnFocusOut: function (id, focusout) { |
|
document.body.addEventListener("focusout", function () { |
|
document.body.removeEventListener("focusout", arguments.callee); |
|
Runtime.dynCall("vi", focusout, [id]); |
|
}); |
|
}, |
|
} |
|
|
|
autoAddDeps(WebGLInputMobile, '$instances'); |
|
mergeInto(LibraryManager.library, WebGLInputMobile); |