2016-07-06 15:25:58 -04:00
|
|
|
|
define(['inputManager'], function (inputManager) {
|
2016-02-17 07:58:07 +01:00
|
|
|
|
|
|
|
|
|
return function (result) {
|
|
|
|
|
result.success = true;
|
|
|
|
|
switch (result.item.deviceid) {
|
|
|
|
|
case 'displaymirroring':
|
2016-07-06 15:25:58 -04:00
|
|
|
|
inputManager.trigger('enabledisplaymirror');
|
2016-02-17 07:58:07 +01:00
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
result.success = false;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|