r3-custom-code/0j2wxrtdf2.js

55 lines
782 B
JavaScript

if (!this.entityLoaded) {
return;
}
if (!this.initialized) {
this.initialized = true;
}
R3.Event.Emit(R3.Event.MOUSE_UP);
/*
var touch = data;
var max = Math.max(touch.left, touch.right, touch.up, touch.down);
if (typeof max === 'number') {
if (max === touch.left) {
R3.Event.Emit(
R3.Event.KEY_DOWN,
{
keyCode : R3.System.Input.KEY_LEFT
}
);
}
if (max === touch.right) {
R3.Event.Emit(
R3.Event.KEY_DOWN,
{
keyCode : R3.System.Input.KEY_RIGHT
}
);
}
if (max === touch.up) {
R3.Event.Emit(
R3.Event.KEY_DOWN,
{
keyCode : R3.System.Input.KEY_UP
}
);
}
if (max === touch.down) {
R3.Event.Emit(
R3.Event.KEY_DOWN,
{
keyCode : R3.System.Input.KEY_DOWN
}
);
}
}
*/
//@ sourceURL=touchEnd.js