IgeEntity

Method: mouseDown

Gets / sets the callback that is fired when a mouse down event is triggered.
mouseDown (Function callback)
  • Functioncallback
Returns *

Hook the mouse down event and stop it propagating further down the scenegraph

entity.mouseDown(function (event, control) {
    // Mouse down with button
    console.log('Mouse down button: ' + event.button);

    // Stop the event propagating further down the scenegraph
    control.stopPropagation();

    // You can ALSO stop propagation without the control object
    // reference via the global reference:
    ige.input.stopPropagation();
});
© Copyright 2013 Irrelon Software Limited. All Rights Reserved. UK Registered Company Number: 07522767
Isogenic (ī´sōjen´ik): Adj originating from a common source; possessing the same genetic composition.
Strange Things Happen at the One Two Point