Browse Source

Corrected bug on Android

pull/197/head
raysan5 8 years ago
parent
commit
b0d5a7a372
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      src/core.c

+ 4
- 3
src/core.c View File

@ -1176,11 +1176,12 @@ bool IsGamepadName(int gamepad, const char *name)
{
bool result = false;
const char *gamepadName = NULL;
#if !defined(PLATFORM_ANDROID)
if (gamepadReady[gamepad]) gamepadName = GetGamepadName(gamepad);
if ((name != NULL) && (gamepadName != NULL)) result = (strcmp(name, gamepadName) == 0);
#endif
return result;
}

Loading…
Cancel
Save