define(['inputManager'], function (inputManager) { return function (result) { result.success = true; switch (result.item.deviceid) { case 'displaymirroring': inputManager.trigger('disabledisplaymirror'); break; default: result.success = false; return; } } });