Corrected bug on Android
This commit is contained in:
parent
bee283b12b
commit
b0d5a7a372
@ -1176,11 +1176,12 @@ bool IsGamepadName(int gamepad, const char *name)
|
|||||||
{
|
{
|
||||||
bool result = false;
|
bool result = false;
|
||||||
const char *gamepadName = NULL;
|
const char *gamepadName = NULL;
|
||||||
|
|
||||||
|
#if !defined(PLATFORM_ANDROID)
|
||||||
if (gamepadReady[gamepad]) gamepadName = GetGamepadName(gamepad);
|
if (gamepadReady[gamepad]) gamepadName = GetGamepadName(gamepad);
|
||||||
|
|
||||||
if ((name != NULL) && (gamepadName != NULL)) result = (strcmp(name, gamepadName) == 0);
|
if ((name != NULL) && (gamepadName != NULL)) result = (strcmp(name, gamepadName) == 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user