Unity 2019 / XR
A little post for Unity developers who work with Unity XR API and process the XR Inputs with Unity Legacy Input System.
New Unity releases (2019) introduced InputDevices which enable us to get a device by role (Generic/LeftHanded/RightHanded/HardwareTracker/…) and to acquire the buttons/axis values using enums defined in UnityEngine.XR.CommonUsages (only available with Unity 2019).
EDIT : I tried using classical Legacy Input System in 2019, and it still works even in Oculus Quest which is a pretty good news to exploit previous developments ! (Oculus Quest controllers were not taken in charge with Legacy Input System in 2018.3 as far as I know)