Move SetGamepadMappings out of rcore

This commit is contained in:
MichaelFiber 2023-09-18 16:19:52 -04:00
parent 6809f06b55
commit 4c59791903
5 changed files with 24 additions and 20 deletions

View File

@ -2022,18 +2022,6 @@ int GetGamepadButtonPressed(void)
return CORE.Input.Gamepad.lastButtonPressed; return CORE.Input.Gamepad.lastButtonPressed;
} }
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{
int result = 0;
#if defined(PLATFORM_DESKTOP)
result = glfwUpdateGamepadMappings(mappings);
#endif
return result;
}
// Check if a mouse button has been pressed once // Check if a mouse button has been pressed once
bool IsMouseButtonPressed(int button) bool IsMouseButtonPressed(int button)
{ {

View File

@ -1634,16 +1634,20 @@ const char *GetGamepadName(int gamepad)
return NULL; return NULL;
} }
// Get selected monitor physical width in millimetres // Get selected monitor physical width in millimetres
int GetMonitorPhysicalWidth(int monitor) int GetMonitorPhysicalWidth(int monitor)
{ {
return 0; return 0;
} }
// Get gamepad axis count // Get gamepad axis count
int GetGamepadAxisCount(int gamepad) int GetGamepadAxisCount(int gamepad)
{ {
return CORE.Input.Gamepad.axisCount; return CORE.Input.Gamepad.axisCount;
} }
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{
return 0;
}

View File

@ -1508,7 +1508,6 @@ const char *GetGamepadName(int gamepad)
return name; return name;
} }
// Get selected monitor physical width in millimetres // Get selected monitor physical width in millimetres
int GetMonitorPhysicalWidth(int monitor) int GetMonitorPhysicalWidth(int monitor)
{ {
@ -1525,9 +1524,14 @@ int GetMonitorPhysicalWidth(int monitor)
return 0; return 0;
} }
// Get gamepad axis count // Get gamepad axis count
int GetGamepadAxisCount(int gamepad) int GetGamepadAxisCount(int gamepad)
{ {
return CORE.Input.Gamepad.axisCount; return CORE.Input.Gamepad.axisCount;
} }
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{
return glfwUpdateGamepadMappings(mappings);
}

View File

@ -956,14 +956,12 @@ const char *GetGamepadName(int gamepad)
return name; return name;
} }
// Get selected monitor physical width in millimetres // Get selected monitor physical width in millimetres
int GetMonitorPhysicalWidth(int monitor) int GetMonitorPhysicalWidth(int monitor)
{ {
return 0; return 0;
} }
// Get gamepad axis count // Get gamepad axis count
int GetGamepadAxisCount(int gamepad) int GetGamepadAxisCount(int gamepad)
{ {
@ -972,3 +970,9 @@ int GetGamepadAxisCount(int gamepad)
CORE.Input.Gamepad.axisCount = axisCount; CORE.Input.Gamepad.axisCount = axisCount;
return CORE.Input.Gamepad.axisCount; return CORE.Input.Gamepad.axisCount;
} }
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{
return 0;
}

View File

@ -1556,16 +1556,20 @@ const char *GetGamepadName(int gamepad)
return name; return name;
} }
// Get selected monitor physical width in millimetres // Get selected monitor physical width in millimetres
int GetMonitorPhysicalWidth(int monitor) int GetMonitorPhysicalWidth(int monitor)
{ {
return 0; return 0;
} }
// Get gamepad axis count // Get gamepad axis count
int GetGamepadAxisCount(int gamepad) int GetGamepadAxisCount(int gamepad)
{ {
return CORE.Input.Gamepad.axisCount; return CORE.Input.Gamepad.axisCount;
} }
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{
return 0;
}