Hi, has anyone successfully used a gamepad with ArcGIS JavaScript API 4.30?
From what I have read I understand the following,
https://developers.arcgis.com/javascript/latest/api-reference/esri-views-navigation-gamepad-GamepadSettings.html
I am using Edge and Chrome on Windows 10.
* Gamepad for navigation is activated by default.
* When a gamepad is connected it should pick it up automatically and the mapping done for navigation
I have connected a gamepad and tested using the Tester in this page
https://developers.arcgis.com/javascript/latest/api-reference/esri-views-input-gamepad-GamepadInputDevice.html
and all is working fine.
After the the gamepad has connected I check the
view.navigation.gamepad.device which is null according to this
https://developers.arcgis.com/javascript/latest/api-reference/esri-views-navigation-gamepad-GamepadSettings.html#device
"if unspecified then all connected gamepads will be able to navigate." so should be good.
But nothing is happening on my SceneView.
So I check view.input.gamepad.devices but this has no devices in it.
So I explicitly set view.navigation.gamepad.device to a device, but still view.input.gamepad.devices has not devices. I am assuming a device her has to be set for gamepad to interact with the SceneView.
Any example I have come across is old such as from 2018 and requires the developer to set gamepad mappings to the SceneView commands, but I thought this was all handled out of the box now.
Any information, examples would be much appreciated.
Regards
Marco Giana