-
gamepad
GamepadSettings
遊戲手柄導航特定配置設置。
例子:
// Disable the gamepad usage in MapView const view = new MapView({ container: "viewDiv", map: new Map({ basemap: "satellite" }), center: [176.185, -37.643], zoom: 13, navigation: { gamepad: { enabled: false } } }); // Disable gamepad usage in SceneView. const view = new SceneView({ container: "viewDiv", map: new Map({ basemap: "satellite", ground: "world-elevation" }), camera: { position: [176.171, -37.660, 2000], heading: 0, tilt: 60 }, navigation: { gamepad: { enabled: false } } });
基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/views/navigation/Navigation"], (Navigation) => { /* code goes here */ });
ESM:
import Navigation from "@arcgis/core/views/navigation/Navigation";
類:
esri/views/navigation/Navigation
繼承: Navigation > Accessor
自從:用於 JavaScript 4.9 的 ArcGIS API
用法說明
Navigation.gamepad
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS Navigation.browserTouchPanEnabled用法及代碼示例
- JavaScript ArcGIS Navigation.mouseWheelZoomEnabled用法及代碼示例
- JavaScript ArcGIS Navigation.momentumEnabled用法及代碼示例
- JavaScript NavigationToggle.when用法及代碼示例
- JavaScript NavigationToggle.visible用法及代碼示例
- JavaScript NavigationToggle.layout用法及代碼示例
- JavaScript NavigationToggle.on用法及代碼示例
- JavaScript NavigationToggle用法及代碼示例
- JavaScript NavigationToggle.classes用法及代碼示例
- JavaScript NavigationToggle.container用法及代碼示例
- JavaScript Number.isSafeInteger()用法及代碼示例
- JavaScript ArcGIS Network.when用法及代碼示例
- JavaScript ArcGIS NetworkElement.positionTo用法及代碼示例
- JavaScript Number.toPrecision()用法及代碼示例
- JavaScript ArcGIS Network.networkServiceUrl用法及代碼示例
- JavaScript Number valueOf()用法及代碼示例
- JavaScript Number isInteger()用法及代碼示例
- JavaScript Number()用法及代碼示例
- JavaScript Number toString()用法及代碼示例
- JavaScript Number.valueOf()用法及代碼示例
- JavaScript Number toPrecision()用法及代碼示例
- JavaScript ArcGIS NetworkElement用法及代碼示例
- JavaScript Number parseFloat()用法及代碼示例
- JavaScript Number.toFixed()用法及代碼示例
- JavaScript Number toFixed()用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 Navigation.gamepad。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。