Available since LÖVE 11.3
This function is not supported in earlier versions.
Gets the USB vendor ID, product ID, and product version numbers of joystick which consistent across operating systems.
Can be used to show different icons, etc. for different gamepads.
This function returns 0 for all the values if LÖVE is compiled with SDL 2.0.5 or earlier.
vendorID, productID, productVersion = Joystick:getDeviceInfo( )
None.
number vendorIDnumber productIDnumber productVersionSome Linux distribution may not ship with SDL 2.0.6 or later, in which case this function will returns 0 for all the three values.
© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Joystick:getDeviceInfo