2016-07-06 15:25:58 -04:00
|
|
|
|
define(['inputManager'], function (inputManager) {
|
2016-10-18 01:06:48 -04:00
|
|
|
|
'use strict';
|
2016-02-17 07:58:07 +01:00
|
|
|
|
|
2016-07-06 16:16:56 -04:00
|
|
|
|
function disableDisplayMirror() {
|
|
|
|
|
return function () {
|
|
|
|
|
inputManager.trigger('disabledisplaymirror');
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-17 07:58:07 +01:00
|
|
|
|
return function (result) {
|
2016-07-06 16:16:56 -04:00
|
|
|
|
|
2016-02-17 07:58:07 +01:00
|
|
|
|
switch (result.item.deviceid) {
|
|
|
|
|
case 'displaymirroring':
|
2016-07-06 16:16:56 -04:00
|
|
|
|
return disableDisplayMirror();
|
2016-02-17 07:58:07 +01:00
|
|
|
|
default:
|
|
|
|
|
return;
|
|
|
|
|
}
|
2016-10-18 01:06:48 -04:00
|
|
|
|
};
|
2016-02-17 07:58:07 +01:00
|
|
|
|
|
|
|
|
|
});
|