This site permanently moved to
https://droidscript.github.io
. Please update links accordingly.
You are being forwarded automatically in 3...
[stay here]
Back
GetJoystickName
JS
Py
Hello World
Returns the name of a conected joystick.
app.GetJoystickName(
id
) →
String
See Also:
GetJoystickState
Example - Show Joystick name on id 0
click to expand contents
function
OnStart
(
)
{
name
=
app
.
GetJoystickName
(
0
)
;
app
.
Alert
(
name
)
;
}
from
native
import
app
def
OnStart
(
)
:
name
=
app
.
GetJoystickName
(
0
)
app
.
Alert
(
name
)
Copy
Copy All
Run
Number:
integer
loading