Difference between revisions of "Joystick:getGUID"
(Created page) |
m |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{newin|[[0.9.0]]|090|type=function}} | {{newin|[[0.9.0]]|090|type=function}} | ||
− | Gets a stable GUID unique to the joystick | + | Gets a stable GUID unique to the type of the physical joystick which does not change over time. For example, all Sony Dualshock 3 controllers in OS X have the same GUID. The value is platform-dependent. |
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | guid = Joystick: | + | guid = Joystick:getGUID( ) |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
None. | None. | ||
=== Returns === | === Returns === | ||
− | {{param|string|guid|The Joystick | + | {{param|string|guid|The Joystick type's OS-dependent unique identifier.}} |
== See Also == | == See Also == | ||
* [[parent::Joystick]] | * [[parent::Joystick]] | ||
Line 15: | Line 15: | ||
* [[love.joystick.setGamepadMapping]] | * [[love.joystick.setGamepadMapping]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=Gets a stable GUID unique to the joystick | + | {{#set:Description=Gets a stable GUID unique to the type of the physical joystick.}} |
== Other Languages == | == Other Languages == | ||
− | {{i18n|Joystick: | + | {{i18n|Joystick:getGUID}} |
Latest revision as of 02:45, 31 August 2013
Available since LÖVE 0.9.0 |
This function is not supported in earlier versions. |
Gets a stable GUID unique to the type of the physical joystick which does not change over time. For example, all Sony Dualshock 3 controllers in OS X have the same GUID. The value is platform-dependent.
Function
Synopsis
guid = Joystick:getGUID( )
Arguments
None.
Returns
string guid
- The Joystick type's OS-dependent unique identifier.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info