{{newin|[[11.3]]|113|type=function}}
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.
{{notice|This function returns 0 for all the values if LÖVE is compiled with SDL 2.0.5 or earlier.}}
== Function ==
=== Synopsis ===
<source lang="lua">
vendorID, productID, productVersion = Joystick:getDeviceInfo( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|vendorID|The USB vendor ID of the joystick.}}
{{param|number|productID|The USB product ID of the joystick.}}
{{param|number|productVersion|The product version of the joystick.}}
== Notes ==
Some 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.
== See Also ==
* [[parent::Joystick]]
[[Category:Functions]]
{{#set:Description=Gets the OS-independent device info of the joystick.}}
== Other Languages ==
{{i18n|Joystick:getDeviceInfo}}