mirror of
https://github.com/raysan5/raylib.git
synced 2025-11-23 18:46:20 +00:00
REMOVED: IsGamepadName()
This function is not required, users can check it with `GetGamepadName()`
This commit is contained in:
@@ -1079,7 +1079,6 @@ RLAPI int GetCharPressed(void); // Get char presse
|
||||
|
||||
// Input-related functions: gamepads
|
||||
RLAPI bool IsGamepadAvailable(int gamepad); // Check if a gamepad is available
|
||||
RLAPI bool IsGamepadName(int gamepad, const char *name); // Check gamepad name (if available)
|
||||
RLAPI const char *GetGamepadName(int gamepad); // Get gamepad internal name id
|
||||
RLAPI bool IsGamepadButtonPressed(int gamepad, int button); // Check if a gamepad button has been pressed once
|
||||
RLAPI bool IsGamepadButtonDown(int gamepad, int button); // Check if a gamepad button is being pressed
|
||||
|
||||
12
src/rcore.c
12
src/rcore.c
@@ -3376,18 +3376,6 @@ bool IsGamepadAvailable(int gamepad)
|
||||
return result;
|
||||
}
|
||||
|
||||
// Check gamepad name (if available)
|
||||
bool IsGamepadName(int gamepad, const char *name)
|
||||
{
|
||||
bool result = false;
|
||||
const char *currentName = NULL;
|
||||
|
||||
if (CORE.Input.Gamepad.ready[gamepad]) currentName = GetGamepadName(gamepad);
|
||||
if ((name != NULL) && (currentName != NULL)) result = (strcmp(name, currentName) == 0);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
// Get gamepad internal name id
|
||||
const char *GetGamepadName(int gamepad)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user