examples/platformer/js/entities/controls.js
function (event) {
        this.setOpacity(0.25);
        if (this.cursors.left === true) {
            me.input.triggerKeyEvent(me.input.KEY.LEFT, false);
            this.cursors.left = false;
        }
        if (this.cursors.right === true) {
            me.input.triggerKeyEvent(me.input.KEY.RIGHT, false);
            this.cursors.right = false;
        }
        this.joypad_offset.set(0, 0);
        return false;
    }
function (event) {
        this.setOpacity(0.25);
        if (this.cursors.left === true) {
            me.input.triggerKeyEvent(me.input.KEY.LEFT, false);
            this.cursors.left = false;
        }
        if (this.cursors.right === true) {
            me.input.triggerKeyEvent(me.input.KEY.RIGHT, false);
            this.cursors.right = false;
        }
        this.joypad_offset.set(0, 0);
        return false;
    }
function ( event ) { this . setOpacity ( 0.25 ) ; if ( this . cursors . left === true ) { me . input . triggerKeyEvent ( me . input . KEY . LEFT , false ) ; this . cursors . left = false ; } if ( this . cursors . right === true ) { me . input . triggerKeyEvent ( me . input . KEY . RIGHT , false ) ; this . cursors . right = false ; } this . joypad_offset . set ( 0 , 0 ) ; return false ; }
function called when the object is release or cancelled
function called when the object is release or cancelled