Added callback to allow/disallow mouse events to start input