REMOVED: IsGamepadName()
This function is not required, users can check it with `GetGamepadName()`
This commit is contained in:
parent
83cd22ee5a
commit
befdb5963e
2 changed files with 0 additions and 13 deletions
|
@ -1079,7 +1079,6 @@ RLAPI int GetCharPressed(void); // Get char presse
|
||||||
|
|
||||||
// Input-related functions: gamepads
|
// Input-related functions: gamepads
|
||||||
RLAPI bool IsGamepadAvailable(int gamepad); // Check if a gamepad is available
|
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 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 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
|
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;
|
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
|
// Get gamepad internal name id
|
||||||
const char *GetGamepadName(int gamepad)
|
const char *GetGamepadName(int gamepad)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue