You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
1.4 KiB
6 lines
1.4 KiB
// All material copyright Esri, All Rights Reserved, unless otherwise specified. |
|
// See https://js.arcgis.com/4.30/esri/copyright.txt for details. |
|
//>>built |
|
define("../../../chunks/tslib.es6 ../../../core/Accessor ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/RandomLCG ../../../core/accessorSupport/decorators/subclass".split(" "),function(c,a,d,h,k,l,e){a=class extends a{constructor(b){super();this.nativeIndex=null;this._detectedDeviceType="unknown";"standard"===b.mapping?this._detectedDeviceType="standard":f.test(b.id)?this._detectedDeviceType="spacemouse":this._detectedDeviceType="unknown";this.nativeIndex= |
|
b.index}get native(){const b=navigator.getGamepads?navigator.getGamepads():[];return null!=this.nativeIndex&&this.nativeIndex<b.length?b[this.nativeIndex]:null}get deviceType(){return this._detectedDeviceType}get axisThreshold(){return g[this.deviceType]}};c.__decorate([d.property({nonNullable:!0,readOnly:!0})],a.prototype,"nativeIndex",void 0);c.__decorate([d.property({type:String,readOnly:!0})],a.prototype,"deviceType",null);c.__decorate([d.property({type:Number,readOnly:!0})],a.prototype,"axisThreshold", |
|
null);a=c.__decorate([e.subclass("esri.views.input.gamepad.GamepadInputDevice")],a);const f=RegExp("^(3dconnexion|space(mouse|navigator|pilot|explorer))","i"),g={standard:.15,spacemouse:.025,unknown:0};return a}); |